Skip to content

Comp3interactive/Unity-CustomDefaultScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Unity-CustomDefaultScripts

Codacy Badge

A collection of custom default scripts for Unity

HOW TO USE

Copy the files in the Scripts folder above directly into your Unity ScriptTemplates folder located at: [Unity Install Path]\Editor\Data\ScriptTemplates
For example mine is: C:\Program Files\Unity\Hub\Editor\2019.2.11f1\Editor\Data\Resources\ScriptTemplates

This may require you to amend the folder permissions

Once they are inside the ScriptTemplates folder, you can open Unity and right click in your Project window to create a new script as you normally do, but now you will see a new folder named "Custom Templates" directly under the C# Script entry, inside here are all of your new default templates! These work just like the default C# Script but provide you with extra templates to cut down on (all-be-in very small amounts) of boilerplate code.

Be aware that if Unity is open when you copy these files over you will need to restart the application for them to be visible

New templates are:

  • Editor Window template
  • Enum template
  • Interface template
  • ScriptableObject template
  • Singleton template
  • UI Element template

About

A collection of custom default scripts for Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published