Class WorldAnchorSpatialLocalizationSettings
Settings for localizing using the World
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 Create
Declaration
public Vector3 AnchorPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
AnchorRotation
When using the Create
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 |
---|---|
World |
Methods
Serialize(BinaryWriter)
Declaration
public void Serialize(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Binary |
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 |
---|---|---|
Binary |
reader | The reader to deserialize settings from. |
World |
settings | The deserialized settings. |
Returns
Type | Description |
---|---|
Boolean | True if the settings were successfully deserialized, otherwise false. |