Search Unity

Using AnimatorControllerPlayable duplicates StateMachineBehaviours

Discussion in 'Animation' started by prg-liulie, Jul 26, 2019.

  1. prg-liulie

    prg-liulie

    Joined:
    Dec 23, 2017
    Posts:
    13
    I use PlayableGraph to blend AnimatorControllerPlayable with AnimationClipPlayable through AnimationLayerMixerPlayable. When I connect AnimatorControllerPlayable to AnimationLayerMixerPlayable, all StateMachineBehaviours are duplicated. But any change in the Animator Window would remove the redundant behaviours. Does anybody know how to bypass this issue in code?

    This issue exists in Unity 2019.1.0b4 and 2019.3.0a8 at least.
     
    Last edited: Jul 26, 2019
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    Do you mean that each state in the animator window shows two of each state machine behaviour? Or that they're running twice due to some copy in the graph?

    Both sounds like a bug you should report using the bug reporter!
     
  3. prg-liulie

    prg-liulie

    Joined:
    Dec 23, 2017
    Posts:
    13
    Each state in the animator window shows two of each state machine behaviour, so the same code runs twice.
     
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    Yeah that's a bug for sure. Have you reported it?
     
  5. prg-liulie

    prg-liulie

    Joined:
    Dec 23, 2017
    Posts:
    13
    yes :)
     
  6. VanDraven

    VanDraven

    Joined:
    Oct 31, 2012
    Posts:
    6
    Last edited: Jan 22, 2020