
Extending Unity with Editor Scripting
By :

When you've worked on a Unity project for a long time, you know that the bigger your scripts get, the more unwieldy they become; all your public variables take up space in the Inspector window, and as they accumulate, they begin to convert into one giant and scary monster.
Sometimes, organization is the trick, like separating these variables in logic groups in your MonoBehaviour
class, but the approach is not always enough to make inspectors user friendly.
To solve this problem, Unity allows us to create custom inspectors for our scripts, so we can define how our exposed variables and their properties should look in the Inspector window.
Here, you will learn how to have a custom inspector up and running by creating one for the Level
class in Run & Jump.
In this chapter, we will cover the following topics:
CustomEditor
attributeSerializedObject
and...Change the font size
Change margin width
Change background colour