DemoSceneUnderstandingController.GetSceneObjectsOfType Method

Definition

Get all currently observed SceneObjects of a certain type.

public:
 System::Collections::Generic::IReadOnlyDictionary<int, Microsoft::MixedReality::Toolkit::Experimental::SpatialAwareness::SpatialAwarenessSceneObject ^> ^ GetSceneObjectsOfType(Microsoft::MixedReality::Toolkit::SpatialAwareness::SpatialAwarenessSurfaceTypes type);
public System.Collections.Generic.IReadOnlyDictionary<int,Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject> GetSceneObjectsOfType (Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes type);
member this.GetSceneObjectsOfType : Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes -> System.Collections.Generic.IReadOnlyDictionary<int, Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness.SpatialAwarenessSceneObject>
Public Function GetSceneObjectsOfType (type As SpatialAwarenessSurfaceTypes) As IReadOnlyDictionary(Of Integer, SpatialAwarenessSceneObject)

Parameters

Returns

A dictionary with the scene objects of the requested type being the values and their ids being the keys.

Remarks

Before calling this function, the observer should be configured to observe the specified type by including that type in the SurfaceTypes property.

Applies to