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); }
private static void Open() { EffectLWindow.Init(); }