Skip to content
Discussion options

You must be logged in to vote

Hey, thank you for creating a detailed report with examples!

This behaviour is by design: PrimeTween doesn't assume you wish to apply the startValue immediately upon creation of the tween because that's not what the user wants in 100% of cases.

The simplest example of this problem is this one:

Sequence.Create()
    .ChainDelay(1f)
    .Chain(Tween.PositionX(transform, 0f, 10f, duration: 1f));

What the above code should do?

  1. Wait 1 second, then play the animation from 0 to 10.
  2. Set position.x immediately to 0f, then wait for 1 second, then play the animation from 0 to 10.

PrimeTween selects option 1 because it gives the user full control over how the animation behaves. If the user wants th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@MikeMuorte
Comment options

@KyryloKuzyk
Comment options

Answer selected by KyryloKuzyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #156 on April 05, 2025 08:18.