Font Size when set to Auto Size

Does anyone know what is the name of the field (public or private) that can give me the calculated font size?
7588582--940957--upload_2021-10-20_14-3-33.png

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

1 Like