Skip to content

Text 3d

Updated

Extruded 3D text.

Type
comp-text-3d
Script class
Text3DComponent
Per entity
One
Version
1.1.0

Read about it in Text: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
bevelOffset -100 ≤ x ≤ 100
bevelSize 0 ≤ x ≤ 100
bevelThickness 0 ≤ x ≤ 100
curveSegments 1 ≤ x ≤ 64, integer
depth 0 ≤ x ≤ 10000
letterSpacing -10000 ≤ x ≤ 10000
lineHeight -10 ≤ x ≤ 10
size 0.001 ≤ x ≤ 10000

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(Text3DComponent);
if (component) log(component.props);
}