public static void Init() { Instance = GetWindow <TriggerEditorWindows>(true); Instance.titleContent = new GUIContent("TriggerEditor"); Instance.maxSize = new Vector2(1400, 860); Instance.minSize = new Vector2(1400, 860); NodeEditor.Refresh(); }
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); }
static void TriggerEditor() { TriggerEditorWindows.Init(); }