In this chapter, I will talk about the simplest way to customize your inspector experience in Unity. Starting from a simple C# PlayerBehaviour script as an example, I will walk you through the customization process by using the built-in C# PropertyAttribute in Unity. Next, I will talk about other useful attributes and some editor messages for MonoBehaviour that are useful for editor scripting.
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021B. KokBeginning Unity Editor Scriptinghttps://doi.org/10.1007/978-1-4842-7167-4_2
2. Customizing the Editor with Attributes and Callbacks
Hong Kong, China
In Unity, when you have a public or serializable field in your C# script ...