May 5, 2021

Tool Guide – Animator State Notifier

Latest Version: 0

The Animator State notifier is a type of state behavior script that lives on individual states within an animator controller. It sends a message to an Animator Events tool that lives on the animator running this animator controller.

It can send a notice when it enters or exits a state, and the notice can contain a number. The number sent is a message to call whatever Unity event is listed at that index in the State Events section in the Animator Events tool.

How to use

  1. Click the Add Behavior button in the inspector when you have a state in an animator controller selected. Search for Animator State Notifier to find it in the list.
  2. Choose whether you want the event to be sent when the state is entered or exited, as well as the index of the event you want to run in the State Events section of the Animator Events tool on the same object as the Animator component running this animator controller.

Section Information

Events

The Events section contains 4 parts

  • The Fire on Enter option
  • The index to run if Fire on Enter is selected
  • The Fire on Exit option
  • The index to run if Fire On Exit is selected

The Fire On Enter option will make this tool run the event at index X (specified in the ID to run on enter section) of the State Events array on the associated Animator Events tool. It does this when the state is entered.

The ID to run on enter is the specific index of the event you want this tool to run when the state is entered.

The Fire On Exit option will make this tool run the event at index X (specified in the ID to run on enter section) of the State Events array on the associated Animator Events tool. It does this when the state is exited.

The ID to run on enter is the specific index of the event you want this tool to run when the state is exited.