Lens Scripting API
    Preparing search index...

    Class Anchor

    An object containing the position of an object relative to a LocationAsset.

    Hierarchy (View Summary)

    Index

    Properties

    location: LocationAsset

    The LocationAsset which this anchor is relative to.

    position: vec3

    The position of this anchor relative to the LocationAsset.

    Methods

    • 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