Lens Scripting API

    Class WorldRenderObjectProvider

    Provider for RenderMesh data representing the estimated shape of real world objects generated from depth information. Only available when world mesh tracking is supported and enabled.

    //@input Component.RenderMeshVisual worldMesh

    var provider = script.worldMesh.mesh.control;
    provider.meshClassificationFormat = MeshClassificationFormat.PerVertexFast;
    provider.useNormals = true;

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    enableWorldMeshesTracking: boolean

    Enable or disable world mesh tracking.

    faceCount: number

    Returns the number of faces of the mesh.

    meshClassificationFormat: MeshClassificationFormat

    Mesh classification format being used.

    useNormals: boolean

    Enable or disable normal direction usage.

    vertexCount: number

    Returns the number of vertices of the mesh.

    Methods

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

      Parameters

      • type: string

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR