예제 #1
0
 private static bool AutoOpenCanvas(int instanceID, int line)
 {
     if (Selection.activeObject != null && Selection.activeObject is NodeCanvas)
     {
         string NodeCanvasPath = AssetDatabase.GetAssetPath(instanceID);
         NodeEditorWindow.OpenNodeEditor();
         canvasCache.LoadNodeCanvas(NodeCanvasPath);
         return(true);
     }
     return(false);
 }
예제 #2
0
        public static NodeEditorWindow OpenNodeEditor()
        {
            _editor = GetWindow <NodeEditorWindow>();

            NodeEditor.ReInit(false);

            Texture iconTexture = ResourceManager.LoadTexture(EditorGUIUtility.isProSkin ? "Textures/Icon_Dark.png" : "Textures/Icon_Light.png");

            _editor.titleContent = new GUIContent("Shadero Sprite Shader Editor", iconTexture);

            return(_editor);
        }