Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AnimationPlayableUtilities.PlayClip

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

Parameters

animator Target Animator.
clip The AnimationClip to create an AnimationClipPlayable for.
graph The 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.

Did you find this page useful? Please give it a rating: