Lens Scripting API
    Preparing search index...

    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)

    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.

    drawDebug: boolean = false

    Enable debug rendering for cursors (cone collider, center ray, and closest-point helpers)

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    isEnabledInHierarchy: boolean

    Returns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.

    name: string
    sceneObject: SceneObject

    The SceneObject 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

    • Returns void