Version: 2017.3
public void Serialize (ref bool value);
public void Serialize (ref char value);
public void Serialize (ref short value);
public void Serialize (ref int value);
public void Serialize (ref float value, float maxDelta= 0.00001F);
public void Serialize (ref Quaternion value, float maxDelta= 0.00001F);
public void Serialize (ref Vector3 value, float maxDelta= 0.00001F);
public void Serialize (ref NetworkPlayer value);
public void Serialize (ref NetworkViewID viewID);

描述

序列化不同类型的变量。

支持的类型为:bool、char、short、int、float、QuaternionVector3NetworkPlayer

注意,Serialize(char) 序列化一个字节,因此它将只适用于 0..255 范围内的字符。