top of page

002-Introductory Exercise

1.1 Introduction

Let us build a couple of inspectors that will brush up our concepts on custom editors and editor scripting

1.2 Custom Editor Exercises

1. Open the 002 folder and then open up the customEditor Folder.

2. Here you will find three scripts-Leopard,Tiger and Whale

3. Your task is to build a custom editor for each of these classes.

​

image.png
image.png
image.png
image.png
image.png
image.png
1.3 Building Custom Editors

1. Let us build three custom editors for each of the monobehaviour scripts

2. For Leopard let us build LeopardEditor

3. For Tiger let us build TigerEditor

4. For Whale let us build WhaleEditor 

For each of these classes  make them inherit from the Editor with CustomEditor(classname 

image.png
image.png
image.png
2.0 Building Editor Windows

 1. In this exercise we are going to be building two editor windows

a. Build MySecondEditor class that inherits from EditorWindow and is at location "MyEditors/MySecondEditor"

b. Build MyThirdEditor class that inherits from EditorWindow and is at location "MyEditors/MyThirdEditor"

image.png
image.png
image.png
image.png

We have successfully added two editor windows using the above scripts.​

End

Kindly support me through my Patreon account if you find these tutorials useful. Feel free to connect with me on Twitter. This support enables me to create more educational content.

bottom of page