The Read
method of the Vector3Int
struct is used to read a Vector3Int
object from a binary stream. This method reads three integer values from the provided BinaryReader
and constructs a Vector3Int
object with these values.
The Read
method of the Vector3Int
struct is used to read a Vector3Int
object from a binary stream. This method reads three integer values from the provided BinaryReader
and constructs a Vector3Int
object with these values.
To use the Read
method, you need to have a BinaryReader
instance that is reading from a stream containing the binary data of a Vector3Int
. The method will read the next three integers from the stream and return a new Vector3Int
object.
// Example usage of Vector3Int.Read using System.IO; // Assume 'stream' is a Stream containing the binary data for a Vector3Int using (BinaryReader reader = new BinaryReader(stream)) { Vector3Int vector = Vector3Int.Read(reader); // Now 'vector' contains the Vector3Int read from the stream }