
Extending Unity with Editor Scripting
By :

In this chapter, we introduced you to the editor scripting API and also the project that we will use in this book.
With editor scripts, we were able to customize how Unity works and customize the workflow based on our specific requirements.
When you work with editor scripts, remember to use the UnityEditor
namespace and save the scripts inside a folder with the name Editor
.
If for some reason you must use the editor scripting API outside an Editor
folder, remember to use the directives #if
and #endif
with the UNITY_EDITOR
conditional compilation symbol to exclude that part of the code in the video game build.
If you plan to create a custom tool in your project, always consider these two things:
In the next chapter, we will continue working on the Level Creator, integrating the use of gizmos to display a grid meant to be used as guides in our tool.
Change the font size
Change margin width
Change background colour