Lens Scripting API
    Preparing search index...

    Target provider for MouseInteractor. Can target all Interactables regardless of their targetingMode.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _currentInteractableHitInfo: InteractableHitInfo = null
    interactionManager: InteractionManager = ...
    targetingMode: TargetingMode = ...

    Accessors

    • get currentInteractableSet(): Set<Interactable>

      Returns Set<Interactable>

    • get direction(): vec3

      Returns the direction the mouse ray is pointing toward.

      Returns vec3

    • get drawDebug(): boolean

      Returns boolean

      if the mouse is should draw a debug gizmo of collider/raycasts in the scene.

    • set drawDebug(debug: boolean): void

      Set if the mouse is should draw a debug gizmo of collider/raycasts in the scene.

      Parameters

      • debug: boolean

      Returns void

    • get endPoint(): vec3

      Returns vec3

      end position in world space

    • get startPoint(): vec3

      Returns vec3

      origin position in world space

    Methods

    • Set the _currentInteractableHitInfo to null, used when an Interactable is deleted from Lens Studio, to keep state in sync

      Returns void

    • Returns boolean

      whether the provider has found a target or not

    • Can be used to reset inner states Should be called when the hand is not tracked or targeting is blocked

      Returns void