首页 > 编程语言 > 详细

unity自定义script模板

时间:2017-08-21 20:17:35      阅读:359      评论:0      收藏:0      [点我收藏+]

以mac为例,在/Applications/Unity/Unity.app/Contents/Resources/ScriptTemplates/ 
新建1个模板文件:91-C# YourNameSpaceScript-NewBehaviourScript.cs.txt

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

namespace YourNameSpace {

    public class #SCRIPTNAME# : MonoBehaviour {

        // Use this for initialization
        private void Awake() {
            #NOTRIM#
        }

        // Use this for initialization
        private void Start () {
            #NOTRIM#
        }

        // Use this for termination
        private void OnDestroy() {
            #NOTRIM#
        }

        // Update is called once per frame
        //private void Update () {
        //}
    }
}

 

unity自定义script模板

原文:http://www.cnblogs.com/dongzee/p/7406315.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!