기술 자료

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).