LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

AnimationPlayableUtilities.PlayClip

public static Animations.AnimationClipPlayable PlayClip(Animator animator, AnimationClip clip, out Playables.PlayableGraph graph);

Parameters

animatorTarget Animator.
clipThe AnimationClip to create an AnimationClipPlayable for.
graphThe created PlayableGraph.

Returns

AnimationClipPlayable A handle to the newly-created AnimationClipPlayable.

Description

Creates a PlayableGraph to be played on the given Animator. An AnimationClipPlayable is also created for the given AnimationClip.