Lens Scripting API

    This class manages the creation and retrieval of InteractorCursor instances for interactors. It initializes cursors for all interactors on awake and provides methods to get cursors by interactor or input type.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    api: Record<string, any>

    Generic object accessible by other instances of ScriptComponent. Use this object to store references to properties and methods that need to be accessible from other ScriptComponents.

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    name: string
    sceneObject: SceneObject

    The scene object this component is on.

    uniqueIdentifier: string
    updatePriority: number

    Methods

    • Parameters

      • interactor: Interactor

        The interactor to get the cursor for

      Returns InteractorCursor

      the InteractorCursor for the requested interactor, or null if it doesn't exist

      in favor of getCursorByInteractor Gets the InteractorCursor for a specified interactor

    • Gets the InteractorCursor for a specified interactor

      Parameters

      • interactor: Interactor

        The interactor to get the cursor for

      Returns InteractorCursor

      the InteractorCursor for the requested interactor, or null if it doesn't exist

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

      Parameters

      • type: string

      Returns boolean

    • Returns void

    MMNEPVFCICPMFPCPTTAAATR