Calculate UI Element Size

Hi there. I need to match a mesh’s size to the size of a text UI element. I’m not seeing any documented way to find the dimensions of a text component. Estimating based on string length is obviously inconsistent because of kerning, etc. Your engine obviously knows what the dimensions are because of the wrapping behaviour, is this just an internal property I’ll have to dig around for?

FYI I was suggested to use this forum rather than the discord. Is this the better place for these discussions?

Hi, welcome to the forum!

Yes, this is typically the go to place for technical questions, and the answers you receive here will benefit the community.

I will check with the team, but I am almost certain this value is not exposed. I agree that it would be very beneficial to have it available.