Class RoomFileSerializer
Converts a UnityEngine.Mesh object to and from an array of bytes that conform to the .room file format. File header: vertex count (32 bit integer), triangle count (32 bit integer) Vertex list: vertex.x, vertex.y, vertex.z (all 32 bit float) Triangle index list: 32 bit integers
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver.RoomFile
Assembly: cs.temp.dll.dll
Syntax
public static class RoomFileSerializer
Methods
Deserialize(BinaryReader)
Deserializes a list of Mesh objects from the provided byte array.
Declaration
public static IList<Mesh> Deserialize(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The reader from which to deserialize the meshes. |
Returns
Type | Description |
---|---|
IList<Mesh> | Collection of Mesh objects. |