Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ISelfTransition

Interface for a self transition in a StateMachine.
Read time 1 minuteLast updated 6 days ago

Definition

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
if (transition is ISelfTransition selfTransition)
. This interface is implemented by Unity and is not intended to be implemented by user code.

Inheritance