我的代码现在:
Animator ContainerAnimator = this.GetComponent<Animator>();
ContainerAnimator.runtimeAnimatorController = Resources.Load("Assets/Cube") as RuntimeAnimatorController;
ContainerAnimator.Play("ContainerMoveUp");
我有一些动态创建的对象,其中包含动画。这些动画仍然没有控制器,我正在尝试添加控制器,但似乎不起作用。有什么技巧或提示可以解决这个问题吗?谷歌上的答案已经不够用了。