Animate a Variable value using iTween

Hi everyone

am trying to animate a gui window on its y position where :

WindowRect = new Rect(0, 0, 500, 500); ------------> WindowRect = new Rect(0, 150, 500, 500);

by changing the value of the WindowRect.y from 0 to 150 using iTween.ValueTo …

I searched a lot for an examples, but none of them were useful to me

any Ideas for how to animate a variable using iTween from value to value

thanks in advance :slight_smile:

iTween.ValueTo(whatever.gameObject, iTween.Hash("from", 0, "to", 1, "time", 3));

(whatever) is not a gameObject its a “float variable”