Search Unity

Mecanim Copy/Paste Sub-State Machine Loses Any State Transitions

Discussion in 'Animation' started by ZhavShaw, May 29, 2019.

  1. ZhavShaw

    ZhavShaw

    Joined:
    Aug 12, 2013
    Posts:
    173
    Hi, I'm running into some weird case scenarios with Mecanim that I can't seem to solve.

    Because of the nature of my animation system, I use a lot of Sub State Machines and Layers to separate animations. The issue is, when I attempt to copy and paste a Sub State Machine where the inner animations are using Any State to transition, the transitions themselves from Any State are lost.

    I'm on 2019.1.0f2
     
    Last edited: May 29, 2019
  2. TeagansDad

    TeagansDad

    Joined:
    Nov 17, 2012
    Posts:
    957
    @ZhavShaw - This is normal. You always lose the Any State transitions when you copy and paste.

    You can right-click on a transition in the inspector and copy its parameters and then do the same on another transition to paste the parameters and conditions, so you don't have to completely set them all up again manually.

    Short of writing some editor scripts to recreate the SSM for you, there's not really anything else you can do about it.