AnimancerNode.

Speed Property

Summary

[Pro-Only] How fast the Animancer.AnimancerState.Time is advancing every frame.

1 is the normal speed.

A negative value will play the animation backwards.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerNode

Syntax

public float Speed { get; set; }

Examples

 void PlayAnimation(AnimancerComponent animancer, AnimationClip clip)
 {
     var state = animancer.Play(clip);

     state.Speed = 1;// Normal speed.
     state.Speed = 2;// Double speed.
     state.Speed = 0.5f;// Half speed.
     state.Speed = -1;// Normal speed playing backwards.
 }

Remarks

Instead of setting this value to 0 to pause an animation, consider setting Animancer.AnimancerState.IsPlaying to false.

Value

Type Description
float