Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Multiple valid state trasitions?

Discussion in 'Animation' started by Gkqt, Mar 17, 2019.

  1. Gkqt

    Gkqt

    Joined:
    Dec 1, 2018
    Posts:
    11
    I created an experimental controller with three identical state transitions pointing to three different states, let an object loop around this controller and recorded the number of times it hit each state. The controller took the same path through the tree each time.

    My question is: how does the animation controller choose which state to proceed to from multiple valid choices? Is there some kind of internal ID that it picks from?
     
  2. SilentSin

    SilentSin

    Joined:
    Jan 3, 2013
    Posts:
    307
    I always just assumed the list gets checked from the top down. Having the order be non-deterministic would be extremely unhelpful.
     
  3. Gkqt

    Gkqt

    Joined:
    Dec 1, 2018
    Posts:
    11
    I admit, I did not notice that states contained a manipulable list of transitions. That could be it. I'll have to test it. Thanks for pointing that out.