先打开所以在目录,如下:
(下面拿 Windows 举例)
Unity软件目录\Editor\Data\Resources\ScriptTemplates
打开后,大概会出现类似如下图的文件:
这些文件名字的意思,如下表所示:
(下面拿 C# Scirpt-NewBehaviourScript.cs 举例)
81 | C# Scirpt | NewBehaviourScript.cs |
排序(顺序)权重 | 右击创建时给的提示名字 | 默认名称.后缀 |
打开后,内容如下所示:
using UnityEngine;
using System.Collections;
public class #SCRIPTNAME# : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
其中的 #SCRIPTNAME# 即为脚本名称。
待补充。