29 de dez. de 2019

Change Animator Controller Asset in Runtime

I needed to change the Animator controller in runtime and one solution was to load de Animator Asset from Resources folder.

  • Put the Assets in Resources folder
  • Load de asset using:

1
animator.runtimeAnimatorController = Resources.RuntimeAnimatorController("AssetControllerName");

Nenhum comentário: