Merge pull request #2259 from ousttrue/fix/meshutility_meshintegrationtab

[MeshUtility] 追加、削除ボタンの実装漏れ
This commit is contained in:
ousttrue 2024-03-06 18:11:05 +09:00 committed by GitHub
commit bb6f20a646
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,12 +73,14 @@ namespace UniGLTF.MeshUtility
var r = _renderers[index];
EditorGUI.ObjectField(rect, r, typeof(Renderer), true);
};
// +ボタンが押された時のコールバック
_rendererList.onAddCallback = list => Debug.Log("+ clicked.");
// -ボタンが押された時のコールバック
_rendererList.onRemoveCallback = list => Debug.Log("- clicked : " + list.index + ".");
_rendererList.onAddCallback = (list) =>
{
_renderers.Add(new Renderer());
};
_rendererList.onRemoveCallback = list =>
{
_renderers.RemoveAt(list.index);
};
}
public void UpdateMeshIntegrationList(GameObject root)