Overview
An editor window is used as a base to display the GUI and support all the user interactions for a specific functionality. In Unity, most of the graphical elements you see are rendered over an editor window, and these can float freely or can be docked as a tab; these can be simple or complex depending of what they need to achieve. See the editor window in the following screenshot:
All the editor windows extend from the EditorWindow
class, which is to be used in order to create our own custom editor windows.
In this chapter, you will learn how to create a custom editor window implementing a Palette, a window that will display the level piece prefabs of the video game.
Defining the chapter goals
In this chapter, we will improve the way a level designer searches for a level piece prefab to use it on a level in the Level Creator tool. Instead of using the Project browser, we will create a Palette using the EditorWindow
class.
The goals here are:
Implementing a category system
Getting a reference...