SelfTransition
class in
Unity.GraphToolkit.Editor
Implements interfaces:ISelfTransition, ITransition
Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Description
The base class for all user-accessible self transitions in a StateMachine graph.
Inherit from this class to define custom self transition types that appear in a state machine graph. A
self transition is anchored on a single State rather than connecting two states.
To create a custom self transition, derive from SelfTransition.
Apply a TransitionAttribute to the class to further customize the self transition.
Custom transitions appear in the Create Transition menu of a state and can be created on it.
See also:
-
StateMachine for the graph type that contains states and transitions
-
State for the base class used to define custom states
Properties
| Property |
Description |
| DefaultColor |
The default color of the transition.
|
| Tooltip |
The text displayed when hovering over the transition.
|
Public Methods
| Method |
Description |
| OnDisable |
Called when the transition is removed or when the graph is disabled.
|
| OnEnable |
Called when the transition is created or when the state machine is enabled.
|