TextView component
Draws a string in space.
TextView cannot be attached to a GameObject that has another Renderer attached.
properties
properties | function |
---|---|
Text | Specify the string to draw |
Size | Specify the size of the string to draw. For Size, you can specify a value between 0 and 5. The size of the drawn string is proportional to both Size and this GameObject’s global scale. When the global scale is 1 and Size is set to 1, the character height (X-height) will be approximately 1m. |
Text Anchor | Specifies the anchor of the string to draw. For example, if you specify UpperLeft, the upper left corner of the string will match the position of this GameObject. |
Text Alignment | Specifies the horizontal alignment when the string to be drawn contains line breaks. |
Color | Specify the color of the string to draw |
The string drawn by the TextView component and the drawing method can be changed from the script. For details, refer to setText function in Script Reference etc.