摘要: Unity3d中的属性(Attributes) Attributes属性属于U3D的RunTimeClass,所以加上以下的命名空间是必须的了。 using UnityEngine; using System.Collections; 0.Property Attributes变量属性(放在方括号内 阅读全文
posted @ 2016-07-31 10:57 Eam 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: Unity支持自行创建窗口,也支持自定义窗口布局。在Project视图中创建一个Editor文件夹,在文件夹中再创建一条脚本。 自定义窗口需要让脚本继承EditorWindow再设置MenuItem,此时在Unity导航菜单栏中GameObjec->window就可创建一个自定义窗口。 0.窗口: 阅读全文
posted @ 2016-07-31 10:50 Eam 阅读(37845) 评论(3) 推荐(3) 编辑