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.PlayAnimatorController

public static Animations.AnimatorControllerPlayable PlayAnimatorController(Animator animator, RuntimeAnimatorController controller, out Playables.PlayableGraph graph);

Parameters

animatorTarget Animator.
controllerThe RuntimeAnimatorController to create an AnimatorControllerPlayable for.
graphThe created PlayableGraph.

Returns

AnimatorControllerPlayable A handle to the newly-created AnimatorControllerPlayable.

Description

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