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 SpatialAwarenessSceneObject

    Object encapsulating the components of a spatial awareness scene object.

    Inheritance
    Object
    SpatialAwarenessSceneObject
    Namespace: Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness
    Assembly: cs.temp.dll.dll
    Syntax
    public class SpatialAwarenessSceneObject : BaseSpatialAwarenessObject

    Properties

    Meshes

    The list of meshes associated with the scene object.

    Declaration
    public List<SpatialAwarenessSceneObject.MeshData> Meshes { get; }
    Property Value
    Type Description
    List<SpatialAwarenessSceneObject.MeshData>

    Position

    The world position for the scene object.

    Declaration
    public Vector3 Position { get; }
    Property Value
    Type Description
    Vector3

    Quads

    The list of quads associated with the scene object.

    Declaration
    public List<SpatialAwarenessSceneObject.QuadData> Quads { get; }
    Property Value
    Type Description
    List<SpatialAwarenessSceneObject.QuadData>

    Rotation

    The world rotation for the scene object.

    Declaration
    public Quaternion Rotation { get; }
    Property Value
    Type Description
    Quaternion

    SurfaceType

    The surface type of the scene object.

    Declaration
    public SpatialAwarenessSurfaceTypes SurfaceType { get; }
    Property Value
    Type Description
    SpatialAwarenessSurfaceTypes

    Methods

    Create(Int32, SpatialAwarenessSurfaceTypes, Vector3, Quaternion, List<SpatialAwarenessSceneObject.QuadData>, List<SpatialAwarenessSceneObject.MeshData>)

    Creates a SpatialAwarenessSceneObject.

    Declaration
    public static SpatialAwarenessSceneObject Create(int id, SpatialAwarenessSurfaceTypes surfaceType, Vector3 position, Quaternion rotation, List<SpatialAwarenessSceneObject.QuadData> quads, List<SpatialAwarenessSceneObject.MeshData> meshData)
    Parameters
    Type Name Description
    Int32 id
    SpatialAwarenessSurfaceTypes surfaceType
    Vector3 position
    Quaternion rotation
    List<SpatialAwarenessSceneObject.QuadData> quads
    List<SpatialAwarenessSceneObject.MeshData> meshData
    Returns
    Type Description
    SpatialAwarenessSceneObject

    A SpatialAwarenessSceneObject containing the fields that describe the scene object.

    In This Article
    Back to top Generated by DocFX