AnimancerState.

IsPlaying Property

Summary

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

Syntax

public bool IsPlaying { get; set; }

Remarks

Example:
 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