Author Topic: ease-in / ease-out missing from tweens?  (Read 7074 times)

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
ease-in / ease-out missing from tweens?
« on: June 21, 2014, 12:36:13 AM »
TweenPosition.Begin (...) animates flat without ease-in/ease-out. Why is it so useless? Do ppl just use iTween or something? It seems to have HEAPS of easing options.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: ease-in / ease-out missing from tweens?
« Reply #1 on: June 21, 2014, 01:05:54 AM »
update: The tween component's anim-curve resets to default every time I call it to play... I found I can add a curve variable to my script and override the tween's anim-curve each time I play.  :o

public AnimationCurve myCurve;
TweenPosition.Begin (gameObject, time, targetPos);
GetComponent<TweenPosition>().animationCurve = myCurve;

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ease-in / ease-out missing from tweens?
« Reply #2 on: June 21, 2014, 03:38:57 PM »
Every time you call TweenXXX.Begin, it resets everything -- intentionally so.

If you want it to keep something, GetComponent<TweenXXX>().PlayForward() instead.