我在“Assets/Resources/System/PLController”中有一个 Animator 控制器。我必须在运行时使用脚本添加它。如何实现这一点。使用Unity 5 (5.3.0f4)
PLController =(动画控制器)
首先附上一个Animator
其组成部分GameObject
like
Like,
Animator PLAnimator;
void Start ()
{
PLAnimator = GetComponent<Animator> ();
PLAnimator.runtimeAnimatorController = Resources.Load ("Assets/Resources/System/PLController") as RuntimeAnimatorController;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)