Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: beermoney on January 25, 2014, 10:34:20 AM
-
there appears to be no option in the inspector to set a tween's "method" property, currently I have to do this on a script
tweenPosition.method = UITweener.Method.BounceIn;
was this there before? (I can't remember) or maybe its moved?
thanks
-
Just modify the curve. You can do all kinds of effects with it. Not just bounce, but anything you like.
-
Is there a particular reason for that property to be hidden in inspector ?
Some presets were useful, and tweaking curves is a pain, you loose a lot of time.
I'd like to have that propery (tween method) back. Seems that removing [HideInInspector] is not enough.
-
You have to modify the Editor of TweenPosition if you want to expose that property ([HideInInspector] works only for default Unity inspectors).
NGUI/Scripts/Editor/TweenPositionEditor.cs
-
It's hidden because it's meant to remain as backwards compatibility with older versions, but it's not meant to be used anymore as you should simply adjust the curve now.
-
Editing the animation curve is a pain. Why not adding some more presets? And why isn't the duration of the tween taken into account for the curve?
-
The curve is 0-1. Duration doesn't change the curve, it's used externally so you can define the curve you want, then alter the duration without having to mess with your curve.