示例#1
0
 public static bool AutoOpenAssets(int instanceId, int line)
 {
     if (AssetDatabase.Contains(instanceId))
     {
         string path = AssetDatabase.GetAssetPath(instanceId);
         if (AssetDatabase.LoadAssetAtPath <NodeEditorState>(path) != null)
         {
             TriggerEditorWindows.Init();
             NodeEditor.LoadCanvas(path);
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 static void TriggerEditor()
 {
     TriggerEditorWindows.Init();
 }