AnimatorOverrideController 动画器重写控制器

Namespace: UnityEngine

Inherits from: RuntimeAnimatorController

Description 描述

Interface to control AnimatorOverrideController.

控制AnimatorOverrideController的接口。

AnimatorOverrideController are used to override clips from a controller to specialize some animations for a given avatar.

AnimatorOverrideController 用来重写给定avatar的控制器的某些动画剪辑。

C#:

Animator animator = GetComponent<Animator>();

 

AnimatorOverrideController overrideController =  AnimatorOverrideController();

 

animator.runtimeAnimatorController = overrideController; 

Variables 变量

clips Returns the list of orignal clip from the controller and their override clip.
从动画控制器以及它们的从写剪辑返回原始剪辑的列表。
runtimeAnimatorController The Controller that the AnimatorOverrideController overrides.
该控制器是AnimatorOverrideController重写。
this[string] Returns either the overriding clip if set or the original clip named name.
如果设置或原始剪辑被命名,返回整个重写剪辑。