E:\project\Assets\Resources\test\con.controller
...
RuntimeAnimatorController ac = Resources.Load<RuntimeAnimatorController>("test/con");//Resources.Load("test/con") as RuntimeAnimatorController;
animator.runtimeAnimatorController = ac;
...
如果不把动画 放入 项目工程的 Resources文件夹下,就不能 获取RuntimeAnimatorController 。
而项目中的对象只能放在Reources文件夹,代码通过Resources.Load来获取Reources文件夹的对象。