
Brainstorms a Unity editor tool to customize folder color and icon via right-click, with a color list and custom icon menu, saving data with editor prefs and a json file.
Create your first Unity editor tool with a menu item under assets/mineral/blue that colors the folder blue, implemented as a static editor script.
Add more menu items to the Unity editor, arrange them with explicit priorities and separators for folders, and implement validate logic for folder-only changes with custom and reset icons.
Enable editor menu items only when a folder is selected by implementing a validate method that checks the selected object's path with the asset database.
Learn to modify the Unity editor using editor scripts to repaint project window items, drawing red rectangles and custom icons with the item rect.
Determine whether a folder sits in the left or right column of the Unity editor grid by analyzing the selection rect, active object grid, and asset paths.
Refine the folder icon in Unity by distinguishing left and right columns, adjusting rects and colors, and iterating with the editor grid to fit the target size.
Replace the folder icon by creating an icons folder and drawing the texture with GUI.drawTexture in Unity. Load assets via the asset database and apply color logic for selected folders.
Extend the Unity editor by using menu items to color folders and save their icon and folder GUID states, leveraging asset database, editor prefs, and project window repaint logic.
Reset and customize folder icons in the Unity editor by editing editor preferences and deleting the selected folder key, with optional toast confirmation and colored icons.
Learn to create a Unity editor tool that assigns custom sprite icons to folders using an object picker, save mappings with editor prefs, and ensure persistence across sessions.
Learn to create a custom editor data file in Unity using json, implementing load and save methods in a static mineral prefs class, and serialize a simple data object.
Create and save a custom data type for the unity editor using lists for keys and values, serializing with json utility, and saving to a readable data file.
This might be the most practical course on making a Unity Editor Extension you’ve seen.
Yeah this is also kinda niche right ?
But ! I’m glad this is something new to you cause this might totally change how you work.
In this course, I’m going to show you how I created Mineral, a Unity Extension that allow you to customize your folders.
After finishing this course, you will be able to colorize your folders, and also replace their icons.
That’s not it, the method I’ll show you will unlock a whole world of possibilities as you will learn how to deal with:
MenuItems
Validation Methods
Using Editor methods to Edit the GUI (Graphical User Interface)
Using GUIDs (Global Unique Identifiers)
Using the AssetDatabase class
Accessing & Editing the Editor Preferences
Saving Data using JSON
And more…
Unity does come with a plethora of functions that allow you to extend the editor.
You will learn techniques that will drastically improve your workflow & help you create your own Unity Tools.
The only limit will be your imagination.
Do you feel that is something that will help you be a better dev ?
Something that can help you save time ?
If that's the case, Jump aboard, and Let's Begin!