Search Unity

RuntimeAnimatorController.animationClips only returning clips on base layer

Discussion in 'Animation' started by LukeDawn, Mar 13, 2019.

  1. LukeDawn

    LukeDawn

    Joined:
    Nov 10, 2016
    Posts:
    404
    Why does Animator.runtimeAnimatorController.animationClips only return an array of clips used on the base layer? Is there a way to get a list of clips used on all layers?

    Unity 2018.3.5f1

    Edit: This issue only occurs when an Animator is withdrawn from an AssetBundle and when instantiated. It seems to return all clips on all layers when extracted from the assetbundle, but once it's called from within a running Animator, it only returns clips from the base layer. This is a bug?
     
    Last edited: Mar 13, 2019
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    It certainly sounds like a bug. Have you submitted a bug report?