Studio wy182000@126.com
  • 无新公告
网站导航
  • 首页
  • 发表文章
  • 留言板

标签归档:Attributes

2014
10-16

unity 脚本Attributes

wy182000 Personal, Unity 围观1002次 留下评论

[System.Serializable] 序列化一个自定义类,该类可以显示在Inspector中。
[System.Serializable]
class A {
public int a = 0;
}
可以把类A序列化,并且显示在Inspector中。

public变量默认是序列化的,但是被readonly、 const、static修饰的变量是不会序列化的。
序列化的变量的值会保存在二进制文件中,游戏启动时会赋相应的值。
继续阅读 →

Read More >
Attributes,unity
  • Note :

    网站以后不再提供评论功能,有问题请发邮件联系。

  • 分类目录

  • 标签

    linux () git () ios () cocos2d-x () game engine () pde engine () ZeroMQ () ZMQ () android () unity () centos () mysql () c++ () windows () php () udp () bison () apache () godaddy () vim () game () blog () nosql () h5 () iptables () nodejs () ui () http () nginx () tc () AMQP () xcode () system () electron () mac () physics () tcp/ip () kvm () wordpress () cron () sed () proxy () flex () vfs () gdb ()
  • 近期文章

    • 游戏引擎设计系列13-声音系统 2018/09/28
    • 游戏引擎设计系列12-物理系统 2018/09/28
    • 游戏引擎设计系列11-动画系统 2018/09/28
    • 游戏引擎设计系列10-UI系统 2018/09/27
    • 游戏引擎设计系列9-渲染系统 2018/09/27
  • 随机文章

    • Embedded Mysql
    • ghs.google.com
    • 滑窗协议(转载)
    • Linux 虚拟机动态增加lvm分区大小
    • How To: Play a Sound
  • Computer

    • github
    • 云风blog
    • 雨松MOMO
    • 鳥哥的 Linux 私房菜
返回顶部 网站地图  沪ICP备13010764号-1

沪公网安备 31010902006793号

@wy182000 | Theme frontopen2