textToMeasure | 要测量的文本。 |
width | Suggested width. Can be zero. |
widthMode | 宽度限制。 |
height | 建议的高度。 |
heightMode | 高度限制。 |
Vector2 Returns the horizontal and vertical size needed to display the text string.
Computes the size needed to display a text string based on element style values such as font, font-size, word-wrap, and so on.