Customize Unity Editor Generated Scripts - Quick Tip @WorldOfZeroDevelopment
Customize Unity Editor Generated Scripts - Quick Tip  @WorldOfZeroDevelopment
Uploaded March 2020 | Updated November 2026, 4 hours ago
You can modify the default scripts Unity generates for you when you use create new MonoBehaviors from inside the editor, generate new Tests or Shaders. If you'd like to modify the default template that Unity provides you with you can navigate to the directory where Unity stores the files and modify them to fit your needs. This will cause all new files of that type generated by Unity to follow the new template.

The `ScriptTemplates` directory is located with your Unity installed files. For example for Unity 2019.1.0f2 the directory will be at `2019.1.0f2\Editor\Data\Resources\ScriptTemplates`. Templates are unique per Unity version so make sure you're modifying the correct version of Unity.

To keep your script templates up to date it may help to store them in source control of some kind, otherwise you'll need to manually ensure they are updated with each update to the Editor.

Here is a Unity support article about customizing your script templates: support.unity3d.com/hc/en-us/articles/210223733-How-to-customize-Unity-script-templates

The comments in this post go a bit deeper into the #NOTRIM# lines. They are not needed anymore and existed to prevent some formatting by the Unity editor. support.unity3d.com/hc/en-us/articles/210223733/comments/115000611483

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Customize Unity Editor Generated Scripts - Quick TipLearning the Basics of the Unity Raymarching Toolkit AssetExploring How To Write Custom Gradle TasksA Circle Shader in Shader Graph - Ripple in Shader Graph - Part 1Making Our Pixels Round -  Circle Pixel Shader - Part 3Shooting Through Walls With Bullet Penetration in UnityDraw Debug Information in the Unity Editor with Gizmos - Quick TipBuilding a Game Board in UnityBuilding a Browser Based Game with Babylon.JSExperimenting with Obstacle Avoidance in Unity 3DUsing Dependency Injection in ASP.NETExperimenting With Top Down Spaceship Movement Controllers
World of Zero |

Customize Unity Editor Generated Scripts - Quick Tip

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER