ドキュメント

Unity Engine

Unity Engine

GetState(int)

Retrieves a state in the state machine by its index.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

public IState GetState(int index)

Parameters

index

The zero-based index of the state to retrieve.

Returns

Type

Description

IStateThe IState at the specified index.

Remarks

Use this method to access a state based on its creation order in the state machine. The index is zero-based and must be within range (see: StateMachine.StateCount).