Class SpatialLocalizationInitializer
Inheritance
SpatialLocalizationInitializer
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public abstract class SpatialLocalizationInitializer : MonoBehaviour
Properties
PeerSpatialLocalizerId
Gets the ID of the ISpatialLocalizer that should be run on the connected peer device to initiate localization.
Declaration
public abstract Guid PeerSpatialLocalizerId { get; }
Property Value
Type | Description |
---|---|
Guid |
Methods
TryResetLocalizationAsync(SpatialCoordinateSystemParticipant)
Call to attempt relocalization with for provided participant.
Declaration
public abstract Task<bool> TryResetLocalizationAsync(SpatialCoordinateSystemParticipant participant)
Parameters
Type | Name | Description |
---|---|---|
Spatial |
participant | participant to localize with |
Returns
Type | Description |
---|---|
Task<Boolean> | True if relocalization succeeded, otherwise false |
TryRunLocalizationAsync(SpatialCoordinateSystemParticipant)
Call to attempt localization with for provided participant.
Declaration
public abstract Task<bool> TryRunLocalizationAsync(SpatialCoordinateSystemParticipant participant)
Parameters
Type | Name | Description |
---|---|---|
Spatial |
participant | participant to localize with |
Returns
Type | Description |
---|---|
Task<Boolean> | True if localization succeeded, otherwise false |