About State IDs and Renaming States

Each state inside of a State Machine needs to have a unique ID assigned to it, which allows to identify it. You can use the ID of a state to access it via code in your scripts.

How to Change the ID of a State

  1. You can assign your own IDs to states. First, select a state in the State Machine Graph window. In the Inspector select the ID field at the top and enter the ID you want to use.

Since each state needs to be identifiable inside of the State Machine by its ID, you cannot assign the same ID to multiple states.

Last updated