Lens Scripting API

    Class LocatedAtComponent

    Enables placing a SceneObject at a real world location provided by LocationAsset and specified relative position.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    distanceToLocation: number
    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    location: LocationAsset

    The LocationAsset which contains the position this object should be anchored to.

    onCannotTrack: event0<void>
    onCanTrack: event0<void>
    onError: event0<void>
    onFound: event0<void>
    onLost: event0<void>
    onReady: event0<void>
    position: vec3

    The geo anchored position within a LocationAsset that this object should be anchored to.

    proximityStatus: LocationProximityStatus
    sceneObject: SceneObject

    The scene object this component is on.

    uniqueIdentifier: string

    Methods

    • Destroys the component.

      Returns void

    • 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

    MMNEPVFCICPMFPCPTTAAATR