Lens Scripting API

    Class SurfaceOptions

    Used with DeviceTracking#surfaceOptions to change settings for Surface tracking mode.

    // Tell the DeviceTracking component to enhance surface tracking with native AR
    //@input Component.DeviceTracking deviceTracking

    script.deviceTracking.surfaceOptions.enhanceWithNativeAR = true;

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    enhanceWithNativeAR: boolean

    If enabled, surface tracking will be improved using native AR tracking.

    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