Needle : 3.45.2
Unity : 2022.3.12f1
Hey, this is a test function for starting an animation half way through but it only resets the animation and causes it to play from the start, never the half way point.
On an older Needle project, this is the exact same approach I used. I’ve included the commented out line where I have to quickly change states for the fast forward to take affect. Even in the older version, fast forwarding an animation for a state that is currently playing never worked. The workaround was to quickly exit and enter the state as shown, but this doesnt work here either.
public startAnimationHalfWay() {
const currentAnimation = this.penaltyTakerAnimator?.runtimeAnimatorController?.activeState?.motion;
if (!currentAnimation) {console.error("No animation found"); return}; // Safety check
//this.penaltyTakerAnimator?.play("No Motion", 0, 0.0);
this.penaltyTakerAnimator?.play(currentAnimation.name, 0, 0.5);
}
Any ideas on what has changed? Regardless of what normalized value I pass in, it always just plays from the start.