Lens Scripting API
    Preparing search index...

    Class DepthModuleExposes User Data

    Provides access to a DepthFrameSession on Spectacles device.

    Used for requesting DepthFrameData.

    Depth Module guide.

    const depthModule = require("LensStudio:DepthModule");

    const session = depthModule.createDepthFrameSession();

    Hierarchy (View Summary)

    Index

    Properties

    name: string

    The name of the Asset in Lens Studio.

    uniqueIdentifier: string

    Methods

    • Returns the name of this object's type.

      Returns string

    • 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