1using System.Collections.Generic;
17 private PlayableGraph _playableGraph;
18 private AnimationPlayableOutput _playableOutput;
19 private AnimationClipPlayable _clipPlayable;
20 private Animator _animator;
24 _animator = GetComponent<Animator>();
27 private void OnDestroy()
29 if (_playableGraph.IsValid())
31 _playableGraph.Destroy();
44 if (_clipPlayable.IsValid())
46 _clipPlayable.Destroy();
48 _clipPlayable = AnimationPlayableUtilities.PlayClip(_animator, animationClip, out _playableGraph);
49 _clipPlayable.SetApplyFootIK(
false);
50 _clipPlayable.SetApplyPlayableIK(
false);
64 if (animationClip.name == name)
Represents a Playable used to play Animations from its Animation Clip List using names or indices as ...
IList< AnimationClip > AnimationClips
Source animation clips.
void PlayAnimation(string name)
Plays the Animation Clip with the given index.
void PlayAnimation(int index)
Plays the Animation Clip with the given index.