Does anyone know what is the name of the field (public or private) that can give me the calculated font size?
![]()
In my case 22.75, I’ve look in debugger and didn’t find it
Does anyone know what is the name of the field (public or private) that can give me the calculated font size?
![]()
In my case 22.75, I’ve look in debugger and didn’t find it
The property is
/// <summary>
/// The point size of the font.
/// </summary>
public float fontSize
Note the fontSize only gets updated after the text object has been processed / rendered.
For instance, if you are changing some of the text properties and need to know “right away” what the resulting results will be, you can use ForceMeshUpdate() to force an immediate update of the text object.
See the following post which might prove useful to you.
Thank you