Class SpatialAwarenessSceneObject
Object encapsulating the components of a spatial awareness scene object.
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. |