用于UNET的通用序列化程序(用于读取字节数组)。
public NetworkReader();
public NetworkReader(NetworkWriter writer);
public NetworkReader(byte[] buffer);
属性
public uint Position { get; }
摘要: 缓冲区中的当前位置。
public int Length { get; }
摘要: 缓冲区的当前长度。
方法
public bool ReadBoolean();
public byte ReadByte();
public byte[] ReadBytes(int count);
public byte[] ReadBytesAndSize();
public char ReadChar();
public Color ReadColor();
public Color32 ReadColor32();
public decimal ReadDecimal();
public double ReadDouble();
public GameObject ReadGameObject();
public short ReadInt16();
public int ReadInt32();
public long ReadInt64();
public Matrix4x4 ReadMatrix4x4();
public TMsg ReadMessage<TMsg>() where TMsg : MessageBase, new();
public NetworkHash128 ReadNetworkHash128();
public NetworkInstanceId ReadNetworkId();
public NetworkIdentity ReadNetworkIdentity();
public uint ReadPackedUInt32();
public ulong ReadPackedUInt64();
public Plane ReadPlane();
public Quaternion ReadQuaternion();
public Ray ReadRay();
public Rect ReadRect();
public sbyte ReadSByte();
public NetworkSceneId ReadSceneId();
public float ReadSingle();
public string ReadString();
public Transform ReadTransform();
public ushort ReadUInt16();
public uint ReadUInt32();
public ulong ReadUInt64();
public Vector2 ReadVector2();
public Vector3 ReadVector3();
public Vector4 ReadVector4();
public void SeekZero();
public override string ToString();