AnimancerState.

IsPlaying Property

Summary

Is the Animancer.AnimancerState.Time automatically advancing?
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerState

Syntax

public virtual bool IsPlaying { get; set; }

Examples

 void IsPlayingExample(AnimancerComponent animancer, AnimationClip clip)
 {
     var state = animancer.States.GetOrCreate(clip);

     if (state.IsPlaying)
         Debug.Log(clip + " is playing");
     else
         Debug.Log(clip + " is paused");

     state.IsPlaying = false;// Pause the animation.

     state.IsPlaying = true;// Unpause the animation.
 }

Value

Type Description
bool