void PopUpSetting() { data_list = new string[generator.Length()]; for (int i = 0; i < data_list.Length; i++) { data_list[i] = generator.GetData(i).m_Name; } EditorGUILayout.Space(); if (data_list.Length != 0) { index = EditorGUILayout.Popup(selectedIndex: index, displayedOptions: data_list); EditorGUILayout.Space(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); generator = (SkillTreeEditorManager)target; // 요소 if (generator.Length() != 0 && generator.Length() > index) { LayOutSetting(); } // 팝업 PopUpSetting(); // 버튼 ButtonSetting(); }