Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Somoraze on September 08, 2013, 11:43:13 PM

Title: [SOLVED] Add method and onFinished for the same tween?
Post by: Somoraze on September 08, 2013, 11:43:13 PM
Hi,

How could you add more than one 'method' to a UITweener, knowing that the 'Begin' function is static?

I would like to add a method for the easing, and a delegate for when the tween finishes, but with this code, I cannot really add the onFinished :

  1. TweenPosition.Begin(obj, 1, Vector3.zero ).method = UITweener.Method.EaseOut;
  2. .onFinished = ...

maybe with a UITweener instance, but how does it work with "Begin" ?

Thanks
Title: Re: Add method and onFinished for the same tween?
Post by: ArenMook on September 09, 2013, 01:00:13 AM
  1. TweenPosition tp = TweenPosition.Begin(obj, 1, Vector3.zero);
  2. tp.method = UITweener.Method.EaseOut;
Title: Re: Add method and onFinished for the same tween?
Post by: Somoraze on September 09, 2013, 01:38:56 PM
arf it was more simple than what I imagined
Thanks a lot