TextService
TextService : Instance
Overview
TextService is a service that calculates the size that text occupies on the screen in advance.
Because the area a sentence occupies changes with the font and the size, it is used to obtain the required size before the UI is placed.
Properties
Methods
GetTextBoundsAsync
A method that calculates the size of the area the text occupies under the specified conditions and returns it in pixels.
The measurement conditions are passed as a GetTextBoundsParams object.
Parameters
Instance Params
The GetTextBoundsParams object that contains the measurement conditions.
Return
Vector2
The width and the height of the area the text occupies.
Code Samples
Events
See also
GetTextBoundsParamsLast updated