In this video we see how to display text on screen in Unity, starting with the creation of a Canvas Text field that serves to render text on screen. Then we see how to write is text through a Script, for this we need to find the reference of the Text component within our Script, in our case we define the variable as public in the inspector and then.
____________________________________________________________
LINKS
Portfolio: https://gamedevtraum.com/en/portfolio...
LinkedIn: / gamedevtraum
Downloads: https://gamedevtraum.itch.io/
Contact: / gamedevtraum
____________________________________________________________
TIMESTAMPS
00:00 Create the TEXT component
00:13 Configure the CANVAS SCALER
00:26 Adjust the TEXT component parameters
00:36 It's important to differentiate this elements
01:00 Create a script to modify the text
01:11 Variables in the script
01:40 Assign the script to any GameObject in the hierarchy
01:50 Setup the component in the inspector
02:04 Write the TEXT from the script
02:27 Updating the TEXT element
#EN