A set of script templates to use when creating scripts in Unity. Replaces the default script template with an empty one (removes Start and Update, and unused imports).
For video instructions, click here.
- Paste the ScriptTemplates folder into your Unity Assets directory.
- Restart Unity.
- Right click on any of your project folders.
- Verify if under the Create menu there is a Scripts submenu, which should have all the script templates inside.
Template | Menu | Use |
---|---|---|
81-C# Script-NewBehaviourScript.cs | Create > C# Script | Replaces default C# Script template |
81-Script__Behaviour-NewBehaviourScript.cs | Create > Script > Behaviour | Creates a new MonoBehaviour. Does the same as Create > C# Script |
81-Script__Class-NewClass.cs | Create > Script > Class | Creates a new class which doesn't inherit from MonoBehaviour |
81-Script__Enum-NewEnum.cs | Create > Script > Enum | Creates a new enum |
81-Script__Interface-NewInterface.cs | Create > Script > Interface | Creates a new interface |
81-Script__Scriptable Object-NewScriptableObject.cs | Create > Script > Scriptable Object | Creates a new Scriptable Object with a CreateAssetMenu attribute |
81-Script__Struct-NewStruct.cs | Create > Script > Struct | Creates a new struct |