Question: You are making a game where you need to execute your own functions in response to critical animation events for a rigged character. Specifically, there are two events you must handle: when an animation state is entered and when it is exited in the Animator graph. Which class may be used to invoke your code when those two events happen?

  1. AnimatorClipInfo
  2. StateMachineBehaviour
  3. AnimationInfo
  4. AnimatorUtility

Answer: The correct answer of the above question is Option B:StateMachineBehaviour