Skip to content

ernstluring/unity-script-template-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Script Template Examples | Sylvan Glade Studio

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.

Install

  • 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.

Templates

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published