Animator does not have an AnimatorController

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/atgczcl/article/details/72867657

Animator does not have an AnimatorController
unity3d 5.6.xx会报这个警告;
Animator does not have an AnimatorController,

这是因为,unity3d 要播放这个动画必须保证这个对象是activeself = true的,所以如果是 activeself = false那就会有这个警告了,解决方案就是在播放动画前进行判断:

if (anim.gameObject.activeself){
        anim.Play("fire");
}

判断activeself = true即可;

阅读更多
换一批

没有更多推荐了,返回首页