Spatial Observer Class
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.
Class providing a base implementation of the IMixedRealitySpatialAwarenessObserver interface.
public ref class BaseSpatialObserver abstract : Microsoft::MixedReality::Toolkit::BaseDataProvider<Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessSystem ^>, IDisposable, Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObserver, System::Collections::IEqualityComparer
public abstract class BaseSpatialObserver : Microsoft.MixedReality.Toolkit.BaseDataProvider<Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessSystem>, IDisposable, Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver, System.Collections.IEqualityComparer
type BaseSpatialObserver = class inherit BaseDataProvider<IMixedRealitySpatialAwarenessSystem> interface IMixedRealitySpatialAwarenessObserver interface IMixedRealityDataProvider interface IMixedRealityService interface IDisposable interface IMixedRealityEventSource interface IEqualityComparer
Public MustInherit Class BaseSpatialObserver Inherits BaseDataProvider(Of IMixedRealitySpatialAwarenessSystem) Implements IDisposable, IEqualityComparer, IMixedRealitySpatialAwarenessObserver
|DefaultPriority||(Inherited from BaseService)|
Default dedicated layer for spatial awareness layer used by most components in MRTK
Value indicating if the object has completed disposal.(Inherited from BaseService)
The configuration profile for the service.(Inherited from BaseService)
Get or sets the default Unity Physics Layer on which to set the spatial object.
Indicates whether or not the service is currently enabled.(Inherited from BaseService)
Indicates whether or not the service has been initialized.(Inherited from BaseService)
Indicates whether or not the Destroy method been called on this service.(Inherited from BaseService)
Is the observer running (actively accumulating spatial data)?
Should the observer remain stationary in the scene?
Optional Priority attribute if multiple services of the same type are required, enables targeting a service for action.(Inherited from BaseService)
Gets or sets the extents (1/2 size) of the volume, in meters per axis, from which individual observations will be made.
The parent GameObject for all observed meshes to be placed under.
Gets or sets the origin, in world space, of the observer.
Gets or sets the orientation of the volume in world space.
Gets or sets the type of volume the observer should operate in.
Optional Priority to reorder registered managers based on their respective priority, reduces the risk of race conditions by prioritizing the order in which managers are evaluated.(Inherited from BaseService)
The service registrar instance that registered this service.(Inherited from BaseDataProvider<T>)
The service instance to which this provider is providing data.(Inherited from BaseDataProvider<T>)
The unique source id of this event source.
The name of this event source.
The spatial awareness system that is associated with this observer.
Indicates the developer's intended startup behavior.
Gets or sets the frequency, in seconds, at which the spatial observer should update.
Ensures that the spatial observer has been stopped and destroyed.
Clears the observer's collection of observations.
Creates the spatial observer and handles the desired startup behavior.
Optional Destroy function to perform cleanup of the service before the Mixed Reality Toolkit is destroyed.
Optional Disable function to pause the service.
Cleanup resources used by this object.(Inherited from BaseService)
Cleanup resources used by the object
Optional Enable function to enable / re-enable the service.
Determines whether the specified object is equal to the current object.
Serves as the default hash function.
Returns a hash code for the specified object.
Creates the observer.
Optional LateUpdate function to that is called after Update has been called on all services.(Inherited from BaseService)
Suspends the observer, clears observations, cleans up the observer, then re-initializes.
Start | resume the observer.
Stop | pause the observer
Optional Update function to perform per-frame updates of the service.(Inherited from BaseService)
Explicit Interface Implementations
Determines whether the specified objects are equal.