代码之家  ›  专栏  ›  技术社区  ›  SpoocyCrep

Animator没有AnimatorController

  •  0
  • SpoocyCrep  · 技术社区  · 8 年前

    我很困惑,我试图播放动画时,击中某个对象,击中被正确检测(尝试调试),然后我试图播放动画,存在于该对象上(通过动画师) enter image description here

    enter image description here

    我的代码:

      if (d.name == "furnacedef")
            {
                Debug.Log("attempt");
                Animator b= d.model.gameObject.GetComponent<Animator>();
                b.Play("burning");
    
            }
    
    0 回复  |  直到 8 年前