DhafinFawwaz / Unity-AnimationUI

Usefull Unity tool for animating UI with just drag and drop
MIT License
297 stars 31 forks source link

[Help] Size Delta vs Local Scale #8

Open PalaNolho opened 2 months ago

PalaNolho commented 2 months ago

Hi, this is not a bug, just a clarification request.

In the Animation-> Rect Transform -> Size Delta, how does that work exactly? how does it differ from Local Scale?

Many thank in advance

DhafinFawwaz commented 3 weeks ago

Same as how Unity works. Size Delta: https://docs.unity3d.com/ScriptReference/RectTransform-sizeDelta.html This is usefull for when you want to adjust an image width or height. You can take advantage of the anchor.

Local Scale: https://docs.unity3d.com/ScriptReference/Transform-localScale.html Usefull when you want to multiply what's already affected by size delta. Its as simple as scaling the whole thing.