Search Unity

Question Best way to select animation from Dropdown UI on Humanoid?

Discussion in 'Animation' started by JudahMantell, Jul 18, 2021.

  1. JudahMantell

    JudahMantell

    Joined:
    Feb 28, 2017
    Posts:
    476
    I am trying to have a basic animation selector at runtime, where a target humanoid avatar gameObject can change between a specified list of animations from a dropdown UI.

    Because it expects an animation controller/Mechanim implementation, rather than a typical list of clips like the legacy system, what is the best way to do this?

    Ideally, I would have a list of FBX files with animations (downloaded from Mixamo or the asset store, for example) and switch the active one based on a dropdown UI index, but I don't think the Animator component works that way.
    Has anyone done something similar or have any insight?
    Thanks in advance!
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,565
    Animancer (link in my signature) lets you just give it whatever clip you want it to play at any time without any messing around.

    Otherwise you could look into Animator Override Controllers.
     
  3. JudahMantell

    JudahMantell

    Joined:
    Feb 28, 2017
    Posts:
    476
    Cool, Animancer looks like what I need, thanks!