I’m decreasing a value which affects a RectTransform and modifies the width accordingly. When I do it however, it shrinks it inwards towards the center of the image. What I want is for the image to shrink only on one side, as if I was dragging the right side inwards in the editor. Is there a simple way to do this? I can’t see anything on the docs, but maybe I’m misinterpreting something. If there’s a way to do it other than writing a formula for it, let me know. Thanks (Below is an image for better understanding)
So you’re gonna want to set the x pivot (in the inspector on recttransform) to either 0 (for anchored left, moving right) or 1 (for anchored right, moving left).
1 Like
Worked perfectly! Thanks for letting me know
