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

参数

animator 目标动画器。
controller 要创建 AnimatorControllerPlayable 的 RuntimeAnimatorController。
graph 创建的 PlayableGraph

返回

AnimatorControllerPlayable 新建 AnimatorControllerPlayable 的句柄。

描述

创建要在给定动画器上播放的 PlayableGraph。此外,还为给定 RuntimeAnimatorController 创建一个 AnimatorControllerPlayable