ISelfTransition
Interface for a self transition in a StateMachine.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Interface
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public interface ISelfTransition : ITransition
Remarks
A self transition is a ITransition that is anchored on a single IState rather than connecting two states, so its ITransition.FromState and ITransition.ToState are the same state. Use this interface to distinguish a self transition from a state-to-state transition, for example . This interface is implemented by Unity and is not intended to be implemented by user code.
if (transition is ISelfTransition selfTransition)