Example #1
0
 public static bool AutoOpenLogic(int instanceId, int line)
 {
     if (AssetDatabase.Contains(instanceId))
     {
         string path  = AssetDatabase.GetAssetPath(instanceId);
         var    graph = AssetDatabase.LoadAssetAtPath <NodeGraph>(path);
         if (graph != null && graph.Type.Equals("Logic"))
         {
             EffectLWindow.Init();
             NodeEditor.Open(graph);
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 private static void Open()
 {
     EffectLWindow.Init();
 }