Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SelfTransition

The base class for all user-accessible self transitions in a StateMachine graph.
Read time 1 minuteLast updated 6 days ago

Definition

public abstract class SelfTransition : ISelfTransition, ITransition

Remarks

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

TooltipThe text displayed when hovering over the transition.

Methods

Method

Description

OnDisableCalled when the transition is removed or when the graph is disabled.
OnEnableCalled when the transition is created or when the state machine is enabled.