Using NGUI 2.5.0c
Hi all,
I'm trying to get a background sprite to hug a UILabel that can have a variable width up to a certain max width. I've been referencing the UITooltip code that resizes the background to the UILabel. The problem with this approach is that if I have a UILabel with a lineWidth set, the background will always enclose the full lineWidth regardless of the amount of text in the UILabel. Is there a way to make the background shrink to the text if the text takes up less space than the full line width?
Thanks!