Hey all,
i made a small tween example using some easing functions. May be i will continue this project in the future
(depends on how you like it
)
For now only GameObjects can be tweened from any position to any position. Next step would be to tween any property of an object.
Please click a window and then a body to link them.
The button “tween” will start all assigned tweens.
http://unity.webdiscdrive.com/tween/
Here a code snippet:
//how to assign a tween
Tween tween = targetObject.GetComponent("Tween") as Tween;
if (!tween)
tween = targetObject.AddComponent("Tween") as Tween;
tween.to(Vector3.up, Vector3.down, duration, new EaseDelegate(Back.EaseOut));
Those who use tweens in Flash will probably know the types of easing for those who don’t can find a description here
http://hosted.zeh.com.br/tweener/docs/en-us/misc/transitions.html
And thanks to shaun! I took his DropDownMenu ![]()