Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStates()

Retrieves all states in the state machine.
Read time 1 minuteLast updated 11 days ago

Definition

public IEnumerable<IState> GetStates()

Returns

Type

Description

IEnumerable<IState>An
IEnumerable
of all IStates in the state machine.

Remarks

Use this method to access every state in the state machine. States are returned in the order they were created.
The list includes: