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;
interface WorldRenderObjectProvider {
    enableWorldMeshesTracking: boolean;
    faceCount: number;
    meshClassificationFormat: MeshClassificationFormat;
    useNormals: boolean;
    vertexCount: number;
    getLoadStatus(): LoadStatus;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

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

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean