Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: beermoney on January 25, 2014, 10:34:20 AM

Title: tween method
Post 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
Title: Re: tween method
Post by: ArenMook on January 25, 2014, 03:32:17 PM
Just modify the curve. You can do all kinds of effects with it. Not just bounce, but anything you like.
Title: Re: tween method
Post by: lelag on January 30, 2014, 05:34:40 AM
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.
Title: Re: tween method
Post by: Cripple on January 30, 2014, 05:45:41 AM
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
Title: Re: tween method
Post by: ArenMook on January 30, 2014, 11:31:37 AM
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.
Title: Re: tween method
Post by: lopez1de on September 17, 2014, 06:54:47 AM
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?
Title: Re: tween method
Post by: ArenMook on September 17, 2014, 12:48:31 PM
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.