This Editor Extension allows you to create new C# scripts easily and quickly – based on flexible, multi-file templates.
The new scripts will automatically placed in the folder you selected in the Project View.
The Extension installs to the Menu in ‘Assets/Create/C# Advanced Templates…’.
The following templates are included:
- MonoBehavior: standard C# script as provided by Unity 3D
- MonoBehavior with Inspector: creates a script for a new MonoBehavior-based Class and at the same time creates a custom inspector for it in the Editor-subfolder.
- MonoBehavior with Inspector and Tools: as above but will additionally create a static class for Editor-accessible methods (MenuItem) for tools and other stuff you might need.
- Editor Inspector: creates a new custom inspector for the specified type and puts it into an Editor-subfolder
- Editor Inspector and Tools: creates a new custom inspector and a tool class for editor-only methods for the specified type and puts it into an Editor-subfolder
- Editor Window: creates a new window for the editor
- Scriptable Wizard: creates a new wizard
- Scriptable Object: creates a script for a new behavior not attachable to a GameObject
- Editor MonoBehavior: creates a standard MonoBehavior that is wrapped in a ‘#if UNITY_EDITOR’ statement thereby making it Editor-only, it will not add overhead code for release/production
These templates work with MonoDevelop but can also used with Visual Studio.
The templates follow the Visual Studio 2008/10 format. You can easily add your own templates. Just pick any tutorial on how to create templates for Visual Studio.
Available here on the Asset Store:
http://u3d.as/content/andreas-zeitler/advanced-c-templates
This is a huge time saver.
Feedback welcome.