public static bool AutoOpenMap(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("Map")) { MapGeneratorWindows.Init(); MapEditor.Open(graph); return(true); } } return(false); }
private static void OpenA() { MapGeneratorWindows.Init(); }