Exemple #1
0
 public static void OpenUI()
 {
     if (wnd == null)
     {
         wnd = GetWindow <UIAnimationQueueEditWindow>();
         wnd.titleContent = new GUIContent("Queue Editor");
     }
     else
     {
         wnd.Show();
         wnd.Focus();
     }
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 private void OnDestroy()
 {
     wnd    = null;
     target = null;
 }