Is it possible to create several different script templates?

I already know that it is possible to change the defualt MonoBehaviour script template as described here: Change the default script template?

I wonder if it is possible to add more templates and have a selection of templates to choose from when creating new scripts?

Absolutely! Just drop any additional templates in

  • Mac - /Unity/Unity.app/Contents/Resources/ScriptTemplates/
  • Windows - /Unity/Editor/Data/Resources/ScriptTemplates/

and follow this pattern:

[Number]-[DisplayName]-[DefaultNameOfFileIncludingExtension].txt

like

83-Interface-IScript.cs.txt

Note: The number affects the order in which they are listed in the dropdown. And you can have multiple of the same number.

I actually found semi-official information on this subject:

How To Customize Unity Script Templates