0
0
Unityframework~5 mins

Text and TextMeshPro in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main difference between Unity's Text component and TextMeshPro?
TextMeshPro provides better text rendering quality and more styling options compared to the basic Text component in Unity.
Click to reveal answer
beginner
How do you add a TextMeshPro component to a GameObject in Unity?
Select the GameObject, then go to the menu: Component > UI > TextMeshPro - Text to add the TextMeshPro component.
Click to reveal answer
intermediate
What is a key benefit of using TextMeshPro for UI text in Unity?
TextMeshPro supports advanced text styling like outlines, shadows, gradients, and rich text tags for better visual effects.
Click to reveal answer
beginner
Which namespace must you include in your script to use TextMeshPro components?
You need to include the namespace using TMPro; to access TextMeshPro classes in your scripts.
Click to reveal answer
beginner
How can you change the text of a TextMeshPro component via script?
Get a reference to the TextMeshProUGUI component and set its text property, for example: myTextMeshPro.text = "Hello!";
Click to reveal answer
Which component provides higher quality text rendering in Unity?
ACanvas Renderer
BTextMeshPro
CSprite Renderer
DText
What namespace do you need to use TextMeshPro in a script?
Ausing System.Text;
Busing UnityEngine.UI;
Cusing TMPro;
Dusing UnityEngine.Text;
How do you change the displayed text of a TextMeshProUGUI component in code?
ASet the text property
BCall UpdateText() method
CSet the content property
DModify the stringValue property
Which of these is NOT a feature of TextMeshPro?
AAutomatic sprite animation
BRich text tags
C3D mesh text rendering
DText gradients
To add a TextMeshPro text element to your UI, you should:
AAdd a Sprite Renderer component
BAdd a Text component and change its font
CAdd a Canvas Renderer component
DAdd a TextMeshPro - Text component from the UI menu
Explain why you might choose TextMeshPro over the default Text component in Unity.
Think about how text looks and what effects you want.
You got /4 concepts.
    Describe the steps to change the text of a TextMeshProUGUI element using a script.
    Focus on the script parts needed.
    You got /4 concepts.