Beispiel #1
0
    static void Init()
    {
        window = (ReactEditor)EditorWindow.GetWindow (typeof(ReactEditor));

        window.Show ();
        var n = Selection.activeObject as Reactable;
        if (n) {
            window.Load (n);
        } else {
            window.root = new Root ();
        }
    }
Beispiel #2
0
 void OnValidateGUIState()
 {
     if (window == null) {
         window = (ReactEditor)EditorWindow.GetWindow (typeof(ReactEditor));
     }
     if (root == null) {
         if (reactable != null)
             Load (reactable);
         if (root == null) {
             root = new Root ();
         }
     }
 }