Lens Scripting API

    Enumeration DeviceTrackingMode

    Tracking modes used by the DeviceTracking component to specify what type of tracking to use.

    // Set the device tracking mode to World
    // @input Component.DeviceTracking deviceTrackingComponent
    script.deviceTrackingComponent.requestDeviceTrackingMode(DeviceTrackingMode.World);
    Index

    Enumeration Members

    Enumeration Members

    Rotation: number

    Use gyroscope tracking (rotation only)

    Surface: number

    Use surface tracking (position and rotation)

    World: number

    Use native tracking (position and rotation)

    MMNEPVFCICPMFPCPTTAAATR