Editor Generator - Hertzole/HertzLib GitHub Wiki

Editor Generator

The editor generator is an extension that allows you to easily generate a custom editor script for your scripts. It gathers all the serializable fields from your script and makes a simple editor script that you then can build upon.

To create an editor, simply right click your script and click Create - C# Inspector Editor. Create C# editor

Your new editor will put in the same location as your script but in an Editor folder.

Here's how the editor will look based on the script provided: Result

It took all the fields Unity can serialize and got them as properties so they can be used later. And since the script had a namespace, it used that and put itself into the same namespace but with Editor at the end. If there's no namespace, it won't be put in a namespace.