We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    Object
    RoomFileSerializer
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    In This Article
    Back to top Generated by DocFX