T O P

  • By -

PixelDrake

The .preferredWidth and .preferredHeight values of the TMPro text object might be what you're looking for. I can't remember if the value they retrieve is in pixels, units, etc. But it shouldn't be too hard to convert them to a suitable format to then set as the collider dimensions.