Pages

Friday, 26 December 2014

Create Unity Custom Editor - Basics (Part 1)

In this basic lessons we will be going to create our own custom inspectors inside unity.

Before we dive in lets get to know what custom inspectors are

A custom inspector is basically an overridden inspector window which can help artist and designers to interact with the inspector in a more user friendly manner. It also helps to create a neat looking inspector for your scripts attached to gameobjects.

So lets get started with the initial project setup
  
Steps to follow:

1) Start a fresh project















2) Create a folder name Scripts
This will hold all the scripts(typically monobehaviour) which will be attached to a gameobject in the scene.














3) Create a folder name Editor (Note : it should be the exact same name)
This will hold all the Editor scripts and Unity will automatically detect weather or not