#Getting text2d world dimensions?

2 messages · Page 1 of 1 (latest)

faint hazel
#

because I want to render arbitrary texts, I need to figure the size of the text so I could fit a framing sprite (think comic speech bubble).

how should I get the text2d dimensions after creation?

faint hazel
#

after creation I can query TextLayoutInfo, but I wondered if I can get that on creation because I tried to have a system that updates the bubble to the text layout size but sometimes i get single frames where I still see the non-resized default values of the bubble 😞