private void CreateNewList() { levelData = CreateLevelData.Create(); if (levelData) { levelData.mappings = new List <ColorMapping>(); string relPath = AssetDatabase.GetAssetPath(levelData); EditorPrefs.SetString("ObjectPath", relPath); Selection.activeObject = levelData; } }
static void Init() { // Get existing open window or if none, make a new one: CreateLevelData window = (CreateLevelData)EditorWindow.GetWindow(typeof(CreateLevelData)); }