Geometry · function

textMeshWidthM

Width of a string in world units, before the basis is applied.

Explained in Hello world, Meshes and geometry.

function textMeshWidthM(text: string, cellSizeM: number): number
import { textMeshWidthM } from '@driftengine/core';

Parameters

ParameterTypeDescription
textstring
cellSizeMnumber