|

Change default C# Script template

Ever wonder how Unity decides what a new scripts should look like when you right-click > Create > C# Script? Easy!

For Windows, just go to C:\Program Files\Unity\Hub\Editor\<Unity Version>\Editor\Data\Resources\ScriptTemplates and open up 81-C# Script-NewBehaviourScript.cs.txt (as Administrator!) and edit the file to your content. Now, when you create a new C# script, it will use this template.

There are also other templates in this folder which you can tweak to your needs.

Similar Posts

Leave a Reply