unity  动态加载 Animator 组件 的Controller

 

public Animator animator; // 直接拖拽,引用

 

string strPath = "FXV2/SoulAnimator/soul_had_animator_" + quality;  // 路径
RuntimeAnimatorController runAnim = (RuntimeAnimatorController) Resources.Load(strPath); // 加载,设置为RuntimeAnimatorController类型
animDiBan.runtimeAnimatorController = runAnim; // 赋值

 

相关文章:

  • 2021-07-10
  • 2022-01-01
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案