CreateEditor() private méthode

private CreateEditor ( ) : void
Résultat void
Exemple #1
0
 public static bool AutoOpenCanvas(int instanceID, int line)
 {
     if (Selection.activeObject != null && Selection.activeObject.GetType() == typeof(NodeCanvas))
     {
         string NodeCanvasPath = AssetDatabase.GetAssetPath(instanceID);
         NodeEditorWindow.CreateEditor();
         EditorWindow.GetWindow <NodeEditorWindow> ().LoadNodeCanvas(NodeCanvasPath);
         return(true);
     }
     return(false);
 }
 public static bool OnOpenAsset(int instanceID, int line)
 {
     if (Selection.activeObject as NodeCanvas != null)
     {
         string NodeCanvasPath = AssetDatabase.GetAssetPath(instanceID);
         NodeEditorWindow.CreateEditor();
         EditorWindow.GetWindow <NodeEditorWindow> ().LoadNodeCanvas(NodeCanvasPath);
         return(true);
     }
     return(false);
 }