Allows text to be displayed in the game.
https://www.youtube.com/shorts/FB4gBHGF6ew
Unless the text is set as 3D, it will only appear when playing. Moving the Text node in the scene only affects a 3D text.
When 3D is enabled, the component has a direction, which is based on the node object’s transform settings.
The node be attached as a target to Action components like Mover and Force.
Visible | Set the Text visible. | |
3D Text | Allows the text to appear in the world as a 3D object. | |
Always Face Camera | Forces the 3D text to always face the camera. (This option is only visible when 3D Text is toggled on) | |
Hide Automatically | Will hide the text after a set duration | |
Duration | Set how long the text is displayed before being hidden (This option only visible when Hide Automatically is toggled on) | |
Text | Input the text you'd like the node to display | |
Type
|
Text | Display simple text |
Number | Display a value | |
Time | Display a value in time format | |
Format | Changes the value display decimals (This option is only visible when the Number Type is selected) | |
Decimals | Set the number of decimals to show (This option is only visible when the Number or Time Types are selected) | |
Value | When set to Number this is the value the node will display | |
Align X / Y | UI placement for non-3D text, choose between 9 preset positions | |
Size | Set the Text size | |
Color | Text color. Selected index or color vector | |
Style | Choose from preset Text styles (current options are plain or outline, the outline adds a black outline to the text) | |
Transition | Choose a transition to play when the text is made visible or hidden |
Here's a link to a scene that shows how to use the Text node: