Extra tags for Unity ScriptTemplates
With openupm-cli (preferred)
openupm add me.guyl.xtags
Add the following line to you Packages/manifest.json
in Unity under the dependencies
section:
"me.guyl.xtags": "https://github.com/bguyl/UnityScriptTemplates-xtags.git#1.0.0"
#DATE#
will be replaced bySystem.DateTime.Now.ToString()
#PRODUCTNAME#
will be replaced by the product name in Player Settings#COMPANYNAME#
will be replaced by the company name in Player Settings
You can edit script templates in the following folder :
On Windows: C:\Program File\Unity\Hub\Editor\<Version>\Editor\Data\Resources\ScriptTemplates
For example, you can edit 81-C# Script-NewBehaviourScript.cs.txt
like this:
/* Written by John Doe on #DATE# */
namespace #COMPANYNAME#.#PRODUCTNAME#
{
using UnityEngine;
/// <summary> </summary>
public class #SCRIPTNAME# : MonoBehavior
{
#region Lifecyle
private void Start()
{
#NOTRIM
}
private void Update()
{
#NOTRIM
}
#endregion
}
}