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.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
bevelOffset |
- |
|
bevelSize |
0 ≤ x ≤ 100 |
|
bevel |
0 ≤ x ≤ 100 |
|
curveSegments |
1 ≤ x ≤ 64, integer |
|
depth |
0 ≤ x ≤ 10000 |
|
letterSpacing |
- |
|
lineHeight |
-10 ≤ x ≤ 10 |
|
size |
0. |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A title in your own fontA Text 3D title registers the Branda font, switches to it, sets its text and shape in one call, then glows between two ambers by tweening only its colour.
Watch the extruded title glow; orbit to see its depth and its shadow. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(Text3DComponent); if (component) log(component.props);}