MyBox
MyBox copied to clipboard
BUG: UISizeBy doesn't work. Use SetSizeWithCurrentAnchors instead of size delta.
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.

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