private static void InstantiateEditorTools() { s_DefaultTilemapEditorTools = TilemapEditorToolPreferences.CreateDefaultTilePaletteEditorTools(); s_TilemapEditorToolsMap = new Dictionary <Type, EditorTool>(s_DefaultTilemapEditorTools.Length); foreach (var editorTool in s_DefaultTilemapEditorTools) { s_TilemapEditorToolsMap.Add(editorTool.GetType(), editorTool); } GridPaintingState.UpdateBrushToolbar(); }
internal static SettingsProvider CreateSettingsProvider() { var settingsProvider = new SettingsProvider("Preferences/2D/Tile Palette", SettingsScope.User, SettingsProvider.GetSearchKeywordsFromGUIContentProperties <GridPaintPaletteWindowPreferences>()) { guiHandler = searchContext => { GridPaintPaletteWindow.PreferencesGUI(); GridPaintActiveTargetsPreferences.PreferencesGUI(); SceneViewOpenTilePaletteHelper.PreferencesGUI(); TilemapPrefabStageHelper.PreferencesGUI(); TilemapEditorToolPreferences.PreferencesGUI(); } }; return(settingsProvider); }