美文网首页
Unity默认脚本模板

Unity默认脚本模板

作者: 郭昊峰 | 来源:发表于2019-01-19 15:59 被阅读0次

在Unity3D中,我们的脚本经常有比较通用的代码

例如:

using UnityEngine;

using UnityEngine.UI;

using System.Collections;

using System.Collections.Generic;

void Start () {}

void Update () {}

等。

又不想每次重新添加,怎么办呢?

我们可以打开以下路径:

文件目录

以C# 为例,打开文档,输入代码,例如:

默认代码

那么每次我们在Unity3D新建一个脚本,都会自带默认脚本了。

相关文章

网友评论

      本文标题:Unity默认脚本模板

      本文链接:https://www.haomeiwen.com/subject/rplzdqtx.html