About Transition Labels
Last updated
Was this helpful?
Last updated
Was this helpful?
You can assign a label to a transition, which in contrast to the ID, does not need to be unique.
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.
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.