AnimancerNode.

Speed Property

Summary

[Pro-Only] How fast the Animancer.AnimancerState.Time is advancing every frame (default 1).
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

A negative value will play the animation backwards.

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

Animancer Lite does not allow this value to be changed in runtime builds.

Value

Type Description
float