Preparing search index...

    A spatial anchor fixed to a point in the user's mapped space.

    Lens Scripting Version 376

    Hierarchy (View Summary)

    Index

    Properties

    anchorType: AnchorType

    What kind of anchor this is.

    Lens Scripting Version 376

    area: string

    The area this anchor belongs to, or null if created in a session without an area.

    Lens Scripting Version 376

    id: string

    A string you can store to refer to this anchor later, then restore it with resolveAnchor().

    Lens Scripting Version 376

    scope: Private

    Who can access this anchor.

    Lens Scripting Version 376

    Methods

    • Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

      Returns string

      Lens Scripting Version 376

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean