找回密码
 注册帐号

扫一扫,访问微社区

bitstream.iswriting 是否正写?

2015-1-3 17:17| 发布者: 杨炎| 查看: 1380| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: bitstream.serialize 序列化functionserialize(ref value: bool) : voidfunctionserialize(ref value: char) : voidfunctionserialize(ref value: short) : voidfunctionserialize(ref value: int) : voidfunctionse ...

bitstream.serialize 序列化

functionserialize(ref value: bool) : void

functionserialize(ref value: char) : void

functionserialize(ref value: short) : void

functionserialize(ref value: int) : void

functionserialize(ref value: float,maxdelta: float = 0.00001f) : void

functionserialize(ref value:quaternion,maxdelta: float = 0.00001f) : void

functionserialize(ref value:vector3,maxdelta: float = 0.00001f) : void

functionserialize(ref value:networkplayer) : void

functionserialize(ref viewid:networkviewid) : void

description描述

serializes different types of variables.

序列化不同类型的变量。

supported types are: bool, char, short, int, float, quaternion, vector3 and networkplayer.

支持的类型为: bool、char、short、 int、float、quaternion、networkplayer.

note that serialize(char) serializes one byte, so it will only work properly for characters in 0..255 range.

注意serialize(char)序列化一个字节,所以它只适用于范围在0到255之间的字符。

相关阅读

文章点评
相关文章