Skip to content

Commit

Permalink
Merge pull request #2259 from ousttrue/fix/meshutility_meshintegratio…
Browse files Browse the repository at this point in the history
…ntab

[MeshUtility] 追加、削除ボタンの実装漏れ
  • Loading branch information
ousttrue committed Mar 6, 2024
2 parents be13ead + 1329be9 commit bb6f20a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Assets/UniGLTF/Editor/MeshUtility/MeshIntegrationTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ public MeshIntegrationTab(EditorWindow editor, GltfMeshUtility 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)
Expand Down

0 comments on commit bb6f20a

Please sign in to comment.