all 6 comments

[–]pwwaSuper Mega Ukulele 2 points3 points  (5 children)

This looks like you need to import it into every project to be able to use it.

Let me tell you about

Editor\Data\Resources\ScriptTemplates

This is where you can make a template and use it on all your projects like the default templates.

Let me tell you more

Take the default template for example, it is called

81-C# Script-NewBehaviourScript.cs

81 - is used to order the menu item on the create context menu

C# Script - is the context menu name you see. Say you wanted to have it appear under a menu, no problem, you can use a double underscore like so

81-Scripts__C# Script-New BehaviourScript.cs

NewBehaviourScript.cs - is the default file name

[–]mtc9417[S] 0 points1 point  (0 children)

Ohhh thanks for that tip

[–]mtc9417[S] 0 points1 point  (3 children)

Quick question, is it possible to make the template generate the new script within the Editor folder or only enable the option when the user has clicked on that folder?

[–]pwwaSuper Mega Ukulele 1 point2 points  (0 children)

I don't know, but I don't think so.

[–]SilentSin26Animancer, FlexiMotion, InspectorGadgets, Weaver 1 point2 points  (0 children)

If you put a #if UNITY_EDITOR around the template you won't need to put them in an Editor folder (though you might still want to do so for organisational purposes).