DemoSceneUnderstandingController.GetSceneObjectsOfType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.