unity 脚本中的一些attribute
来源:互联网 发布:c 数组删除指定位置 编辑:程序博客网 时间:2024/05/16 08:21
1.Serializable
The Serializable attribute lets you embed a class with sub properties in the inspector.
让你能够把它嵌入到另外一个class时在属性编辑器里能将其展开
[System.Serializable]
class Test{
public int p = 5;
public Color c = Color.white;
}
public class Test2:MonoBehaviour{
public Test[] t;
}
这样在编辑器里Test里的t是能进一步展开的,这个很有用
0 0
- unity 脚本中的一些attribute
- Unity中的Attribute
- Unity中的各种Attribute
- unity3d 中的一些Attribute
- Unity中的Attribute使用总结
- Unity 中的C#脚本
- Unity 中的C#脚本
- Unity-Attribute
- unity Attribute
- Unity Attribute
- Unity中的脚本生命周期图
- unity中的c# Attribute特性的使用记录
- unity脚本的一些笔记(一)
- unity脚本的一些笔记(二)
- unity脚本的一些笔记(三)
- Unity中的一些基本概念回顾
- Unity中的一些重要函数
- unity中的一些常见快捷键
- 使用OpenSWAN做IPSecVPN的RoadWarrior模式
- 延迟加载DLL
- Opencv cvAdaptiveThreshold 函数
- 送给毕业生的一个学习建议
- 简单的生活
- unity 脚本中的一些attribute
- Strom:pluggable scheduler 自己写的自定义分配任务
- makefile使用
- perl语言中qq, qw等关键字的用法总结
- char,unsigned char,unsigned short,有符号和无符号之间的转换
- HIbernate逍遥游记——(三)通过Hibernate操纵对象
- 2765 :八进制小数
- A luck number 2
- 圆的划分问题