About Transition Labels

You can assign a label to a transition, which in contrast to the ID, does not need to be unique.

Example

Imagine you create a State Machine controlling your UI and have a return button on each panel. You could now assign the label “Return” to all transitions which should perform a return and call the TriggerByLabel method when the button is clicked.

How to Assign a Label to a Transition

Select the transition you want to assign a label to, by clicking on it in the State Machine Graph window. In the Inspector select the Label text field at the top and enter the label you want to use.

Last updated