Skip to content

Extra tags/keywords for Unity script templates

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

bguyl/UnityScriptTemplates-XTags

Repository files navigation

Unity ScriptTemplates XTags

openupm


Extra tags for Unity ScriptTemplates


Installation

With openupm-cli (preferred)

openupm add me.guyl.xtags

With Git

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"

Available tags

  1. #DATE# will be replaced by System.DateTime.Now.ToString()
  2. #PRODUCTNAME# will be replaced by the product name in Player Settings
  3. #COMPANYNAME# will be replaced by the company name in Player Settings

Examples

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
    }
}

About

Extra tags/keywords for Unity script templates

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages