So is there some way to scale panel to fit child text size, if the text object is scaled?
(and text gameobject has to be scaled to get smoother font..)
here's my hierarchy:
Canvas
- Panel < this should scale with text size, and it works correctly, but only if text recttransform scale is 1,1,1
- - Text
View attachment 219030
https://docs.unity3d.com/Manual/HOWTO-UIFitContentSize.html
(and text gameobject has to be scaled to get smoother font..)
here's my hierarchy:
Canvas
- Panel < this should scale with text size, and it works correctly, but only if text recttransform scale is 1,1,1
- - Text
View attachment 219030
https://docs.unity3d.com/Manual/HOWTO-UIFitContentSize.html