Hi,
I am using playable graph api to play a simple animation clip. How to find out if animation clip is done playing? It is not PlayableGraph.IsPlaying() or PlayableGraph.IsDone(). I can get to the AnimationClip through PlayableOutput and AnimationClipPlayable, but AnimationClip itself doesnt seem to have anything indicating if its playing or not.
I am using this example from unity manual:
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Animations;
[RequireComponent(typeof(Animator))]
public class PlayAnimationUtilitiesSample : MonoBehaviour
{
public AnimationClip clip;
PlayableGraph playableGraph;
void Start()
{
AnimationPlayableUtilities.PlayClip(GetComponent<Animator>(), clip, out playableGraph);
}
void OnDisable()
{
// Destroys all Playables and Outputs created by the graph.
playableGraph.Destroy();
}
}