Summary
[Pro-Only] How fast the
Animancer.AnimancerState.Time
is advancing every frame (default 1).- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerNodeBase
Syntax
public float Speed { get; set; }
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 doesn't allow this value to be changed in runtime builds.
Example: void SpeedExample(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.
state.NormalizedTime = 1;// Start at the end to play backwards from there.
}
Value
Type | Description |
---|---|
float |