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();
 }
예제 #2
0
        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);
        }