Search Unity

OnStateExit requires a n outgoing transition?

Discussion in 'Animation' started by laurentlavigne, Dec 15, 2015.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,366
    Just verifying...
    I attached a behavior on the deat state which is terminal and it wouldn't trigger.
     
  2. TH_Unity

    TH_Unity

    Joined:
    Jul 9, 2013
    Posts:
    11
    Sure. How else would you be able to leave the state?
    OnStateExit() is called when the state is exited, therefore another state has begun to play. Note: The new state can be the same state it came from (transitition to itself)