Class WorldAnchorSpatialLocalizationSettings
Settings for localizing using the WorldAnchorSpatialLocalizer
Implements
Inherited Members
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public class WorldAnchorSpatialLocalizationSettings : ISpatialLocalizationSettings
Properties
AnchorId
Specifies the ID of the anchor, used to persist and restore the anchor across sessions.
Declaration
public string AnchorId { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
AnchorPosition
When using the CreateAnchorAtWorldTransform mode, specifies the world position at which the WorldAnchor should be created.
Declaration
public Vector3 AnchorPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
AnchorRotation
When using the CreateAnchorAtWorldTransform mode, specifies the world rotation at which the WorldAnchor should be created.
Declaration
public Quaternion AnchorRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| Quaternion |
Mode
The mode used to create a spatial coordinate.
Declaration
public WorldAnchorLocalizationMode Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| WorldAnchorLocalizationMode |
Methods
Serialize(BinaryWriter)
Declaration
public void Serialize(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer |
TryDeserialize(BinaryReader, out WorldAnchorSpatialLocalizationSettings)
Tries to deserialize settings from a stream.
Declaration
public static bool TryDeserialize(BinaryReader reader, out WorldAnchorSpatialLocalizationSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The reader to deserialize settings from. |
| WorldAnchorSpatialLocalizationSettings | settings | The deserialized settings. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the settings were successfully deserialized, otherwise false. |