Unity设置默认C#文件的内容

找到Unity\Editor\Data\Resources\ScriptTemplates下的

81-C# Script-NewBehaviourScript.cs.txt

将内容设置为:

/* 
 *  Author : YourName
 */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class #SCRIPTNAME# : MonoBehaviour
{
    void Start()
    {
        #NOTRIM#
    }

    void Update()
    {
        #NOTRIM#
    }
}

猜你喜欢

转载自blog.csdn.net/jk_chen_acmer/article/details/106950408