Lens Scripting API

    Class TargetingDataArgsWearable Only

    // For public use
    script.gestureModule = require("LensStudio:GestureModule");

    function onTargetingDataEvent(args) {
    print("The hand intends to target: " + args.handIntendsToTarget);
    }

    script.gestureModule
    .getTargetingDataEvent(GestureModule.HandType.Right)
    .add(onTargetingDataEvent);

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    handIntendsToTarget: boolean

    Whether the hand intends to target.

    isValid: boolean
    rayDirectionInWorld: vec3
    rayOriginInWorld: vec3

    Methods

    • 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