WLT documentation has moved.

We are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the Core WLT section of the dot net API explorer and related pages. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class SpongyAnchor

    Wrapper class for Unity spatial anchors, facilitating creation and persistence.

    Inheritance
    Object
    SpongyAnchor
    SpongyAnchorARCore
    SpongyAnchorARF
    SpongyAnchorNull
    SpongyAnchorWSA
    SpongyAnchorXR
    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
    In This Article
    Back to top Generated by DocFX