Class SpongyAnchor
Wrapper class for Unity spatial anchors, facilitating creation and persistence.
Inheritance
Namespace: Microsoft.MixedReality.WorldLocking.Core
Assembly: cs.temp.dll.dll
Syntax
public abstract class SpongyAnchor : MonoBehaviour
Properties
Delta
Diagnostic only - to be removed.
Declaration
public virtual Vector3 Delta { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
IsLocated
Returns true if the anchor is reliably located. False might mean loss of tracking or not fully initialized.
Declaration
public abstract bool IsLocated { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsSaved
Whether the underlying spatial anchor is known to be in the local anchor store.
Declaration
public virtual bool IsSaved { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Note that the anchor might be in the anchor store but isn't known to be, so IsSaved == false. In particular, a different anchor might be stored under the same name, in which case saving this anchor probably requires deleting the old anchor first.
SpongyPose
Return the anchor's pose in spongy space.
Declaration
public abstract Pose SpongyPose { get; }
Property Value
Type | Description |
---|---|
Pose |