Lens Scripting API

    Class TrackedPointComponent

    Allows you to bind the position and rotation of an object with this component to a TrackedPoint.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    isValid: boolean

    Returns whether the trackedPoint is valid.

    sceneObject: SceneObject

    The scene object this component is on.

    trackedPoint: TrackedPoint

    The TrackedPoint which this component will copy the position and rotation from.

    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