コード例 #1
0
		public static PlayableHandle PlayAnimatorController(Animator animator, RuntimeAnimatorController controller, out PlayableGraph graph)
		{
			graph = PlayableGraph.CreateGraph();
			PlayableHandle result = graph.CreateAnimationOutput("AnimatorControllerPlayable", animator).sourcePlayable = graph.CreateAnimatorControllerPlayable(controller);
			graph.SyncUpdateAndTimeMode(animator);
			graph.Play();
			return result;
		}