MyBox icon indicating copy to clipboard operation
MyBox copied to clipboard

BUG: UISizeBy doesn't work. Use SetSizeWithCurrentAnchors instead of size delta.

Open Tymski opened this issue 4 years ago • 0 comments
trafficstars

You set size delta instead of using the SetSizeWithCurrentAnchors method. This doesn't work on the majority of anchor settings.

Any stretching on anchor settings will break your code in half. image

https://docs.unity3d.com/ScriptReference/RectTransform.SetSizeWithCurrentAnchors.html

Tymski avatar Nov 26 '20 00:11 Tymski