playMaker

Author Topic: Tweening Rect Transform for UI [SOLVED]  (Read 1300 times)

curb47

  • Sr. Member
  • ****
  • Posts: 256
Tweening Rect Transform for UI [SOLVED]
« on: November 23, 2020, 04:38:56 AM »
Hello,

I'm trying to tween a Canvas Image so that it slides off to the left or right upon a button press. The button set-up etc is no problem, it's just the Rect Transform that I can't get right.

I'm using DoTween, but in the settings for the action, the Transform variables don't match the Rect Transform settings...



You can see the 'To' is X, Y and (W)idth, (H)eight.

But in the Rect Transform for the Image, it's Left, Right and Top, Bottom.



So, in a nutshell, which DoTween should I be using to animate the Image sliding off screen?



Thank you.

J.
« Last Edit: November 24, 2020, 03:24:23 AM by curb47 »

curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Tweening Rect Transform for UI
« Reply #1 on: November 24, 2020, 03:24:05 AM »
S'okay, got it sorted.