Search Unity

How to know which transition is my Animator making?

Discussion in 'Animation' started by Rodolfo-Rubens, Feb 21, 2015.

  1. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    For example, if I have 5 transitions going from one node to another, how to know which transition is being made?
     
    Last edited: Feb 24, 2015
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    If you select your game object and the animator windows is open you should get a live link showing you the current state of your statemachine with the parameter and transition updated live.

    You should see with transition is trigger and why.
     
  3. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    Yes, I can see that, but for example, if I have 2 transitions linking the same nodes, how to know which of these 2 transitions my StateMachine is selecting to go from the first node to the second node? It's really hard to presume which one the state machine have chosen comparing the parameters because it's too fast!

    In this case for example:
    Captura de tela 2015-02-24 15.41.41.png

    They share the same wire on the Animator window, I can't figure which of these two transitions my StateMachine selected..
     
  4. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    Transition are always evaluated in the same order than they appear in the list.

    So order in the list define the execution order.

    In you case since both transition goes from the same state to the same state there is no visual cue to let you know which one was taken.