We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

DISPLAY TEXT

Sets the displayed text on a text gizmo.

Appearance in Composition Pane
Description

Display text controls what string value will be displayed on a text gizmo and does not affect the text gizmo’s visibility. If a non-string variable is used, the value must be inside a variable as string codeblock. A text gizmo can display up to 1000 characters. Seen below are a few text formatting options from the “Intro to Gizmos” tutorial series: remove spaces when using:
Parameters

string, object


PREREQUISITE READING

SET PROJECTILE GRAVITY precedes this tutorial


Example 1: Display a player’s name

When player enters the world we display text to show the player's name on the text gizmo self.
A few text formatting tips: