/*using UnityEngine; using UnityEditor; using ModelSwitch; [CustomEditor(typeof(ModelSelector))] public class ModelArrayEditor : Editor { public override void OnInspectorGUI() { DrawDefaultInspector(); ModelSelector script = (ModelSelector)target; if (script.models == null) script.models = new GameObject[0]; EditorGUILayout.Space(10f); // 간격 추가 string objName = "Model"; if (GUILayout.Button("Auto Populate Models")) { if (objName == "") { Debug.LogWarning("부모 오브젝트의 이름을 입력해주세요."); } else { Transform modelTransform = GameObject.Find(objName).transform; // "model" 오브젝트를 찾습니다. if (modelTransform != null) { script.models = new GameObject[modelTransform.childCount]; for (int i = 0; i < modelTransform.childCount; i++) { script.models[i] = modelTransform.GetChild(i).gameObject; } } else { Debug.LogWarning("모델을 찾을 수 없습니다."); } } } } }*/