Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

OnStateExit requires a n outgoing transition?

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

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,996
    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)