public static void OpenUI() { if (wnd == null) { wnd = GetWindow <UIAnimationQueueEditWindow>(); wnd.titleContent = new GUIContent("Queue Editor"); } else { wnd.Show(); wnd.Focus(); } }
public override void OnInspectorGUI() { if (!_refresh_data || _queues == null) { _refreshData(); } EditorGUILayout.Space(); _list_queues.DoLayoutList(); if (GUILayout.Button("Open Edit Window")) { UIAnimationQueueEditWindow.target = (UIAnimationQueue)target; UIAnimationQueueEditWindow.OpenUI(); } GUILayout.Space(10); EditorGUILayout.PropertyField(_title); EditorGUILayout.PropertyField(_playOnAwake); GUILayout.Space(10); EditorGUILayout.PropertyField(_onFinish); this.serializedObject.ApplyModifiedProperties(); }
private void OnDestroy() { wnd = null; target = null; }