!!!選択中のGameObjectを取得 Editorの機能として、選択されているGameObjectを列挙します。 要: using UnityEngine; using UnityEditor; // 選択中のGameObjectを配列として取得. int selectCou = Selection.gameObjects.Length; for (int i = 0; i < selectCou; i++) { GameObject obj = Selection.gameObjects[i]; // MeshのGameObjectであるか判定. if (obj.GetComponent() != null) { if (obj.GetComponent().sharedMesh != null) { Debug.Log(obj); } } } 「Selection.gameObjects」で、GameObjectの配列を取得できます。 ---- {{lastmodified}}