BitStream.Serialize 序列化
function Serialize (ref value : bool) : void
function Serialize (ref value : char) : void
function Serialize (ref value : short) : void
function Serialize (ref value : int) : void
function Serialize (ref value : float, maxDelta : float = 0.00001F) : void
function Serialize (ref value : Quaternion, maxDelta : float = 0.00001F) : void
function Serialize (ref value : Vector3, maxDelta : float = 0.00001F) : void
function Serialize (ref value : NetworkPlayer) : void
function Serialize (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、Vector3 和 NetworkPlayer.
Note that Serialize(char) serializes one byte, so it will only work properly for characters in 0..255 range.
注意Serialize(char)序列化一个字节,所以它只适用于范围在0到255之间的字符。