public static void DrawInstancerParentUI(GameObject theInstancer) { EditorGUILayout.BeginVertical("Button"); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Parent:", GUILayout.Width(50)); EditorGUILayout.LabelField(theInstancer.transform.parent.name, GUILayout.Width(145)); SS_Common.UIButtonGameObjectSelect(theInstancer.transform.parent.gameObject); EditorGUILayout.EndHorizontal(); EditorGUILayout.EndVertical(); }
void DrawExistingSubAreasGUI(SS_LevelArea[] allAreas) { if (allAreas != null && allAreas.Length > 0) { for (int i = 0; i < allAreas.Length; i++) { EditorGUILayout.BeginVertical("Button"); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(allAreas[i].name); SS_Common.UIButtonGameObjectSelect(allAreas[i].gameObject); SS_Common.UIButtonGameObjectDelete(allAreas[i].gameObject); EditorGUILayout.EndHorizontal(); EditorGUILayout.EndVertical(); } } }