Class DemoSceneUnderstandingController
Demo class to show different ways of visualizing the space using scene understanding.
Implements
Namespace: Microsoft.MixedReality.Toolkit.Experimental.SceneUnderstanding
Assembly: cs.temp.dll.dll
Syntax
public class DemoSceneUnderstandingController : DemoSpatialMeshHandler, IMixedRealitySpatialAwarenessObservationHandler<SpatialAwarenessSceneObject>
Methods
ClearScene()
Request the observer to clear the observations in the scene
Declaration
public void ClearScene()
OnDestroy()
Declaration
protected override void OnDestroy()
OnDisable()
Declaration
protected override void OnDisable()
OnEnable()
Declaration
protected override void OnEnable()
OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject>)
Declaration
public void OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject> eventData)
Parameters
Type | Name | Description |
---|---|---|
Mixed |
eventData |
OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject>)
Declaration
public void OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject> eventData)
Parameters
Type | Name | Description |
---|---|---|
Mixed |
eventData |
OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject>)
Declaration
public void OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessSceneObject> eventData)
Parameters
Type | Name | Description |
---|---|---|
Mixed |
eventData |
SaveScene()
Request the observer to save the scene
Declaration
public void SaveScene()
Start()
Declaration
protected override void Start()
ToggleAutoUpdate()
Change the auto update state of the observer
Declaration
public void ToggleAutoUpdate()
ToggleBackground()
Change whether to request background data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleBackground()
ToggleCeilings()
Change whether to request ceiling data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleCeilings()
ToggleCompletelyInferred()
Change whether to request completely inferred data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleCompletelyInferred()
ToggleFloors()
Change whether to request floor data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleFloors()
ToggleGenerateMeshes()
Change whether to request mesh data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleGenerateMeshes()
ToggleGeneratePlanes()
Change whether to request plane data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleGeneratePlanes()
ToggleInferRegions()
Change whether to request inferred region data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleInferRegions()
ToggleOcclusionMask()
Change whether to request occlusion mask from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleOcclusionMask()
TogglePlatforms()
Change whether to request platform data from the observer followed by clearing existing observations and requesting an update
Declaration
public void TogglePlatforms()
ToggleWalls()
Change whether to request wall data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleWalls()
ToggleWorld()
Change whether to request world mesh data from the observer followed by clearing existing observations and requesting an update
Declaration
public void ToggleWorld()
UpdateScene()
Request the observer to update the scene
Declaration
public void UpdateScene()