Lens Scripting API

    This class provides basic pinch button functionality for the prefab pinch button. It is meant to be added to a Scene Object with an Interactable component, with visual behavior configured in the Lens Studio scene.

    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.

    editEventCallbacks: boolean = false

    Enable this to add functions from another script to this component's pinch callback events.

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    name: string
    onButtonPinched: PublicApi<InteractorEvent> = ...
    sceneObject: SceneObject

    The scene object this component is on.

    uniqueIdentifier: string
    updatePriority: number

    Methods

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

      Parameters

      • type: string

      Returns boolean

    • Returns void

    MMNEPVFCICPMFPCPTTAAATR