Search Unity

Mecanim moving state from parent to sub state machine

Discussion in 'Editor & General Support' started by Razieln64, Aug 19, 2013.

  1. Razieln64

    Razieln64

    Joined:
    May 3, 2008
    Posts:
    129
    Hi,

    I'm working on some mecanim state machines and sometimes it can get messy with arrows going everywhere. I'm more organized now since I use sub state machines. I would like to know if it's possible to move states from a layer into a sub state machine.

    Update: Sorry! Nevermind, I found out how to move states into a sub state machine. Maybe mouse events weren't registering properly.
     
    Last edited: Aug 19, 2013
  2. quitebuttery

    quitebuttery

    Joined:
    Mar 12, 2011
    Posts:
    329
    So uh....how did you do this? I don't see any way to move states into substatemachines (4.X)
     
  3. Razieln64

    Razieln64

    Joined:
    May 3, 2008
    Posts:
    129
    Hi
    Right click in the Animator view and select "Create Sub-State Machine".
    Then drag and drop the states you on the newly created sub-state machine.