기술 자료

Unity Engine

Unity Engine

GetOption(int)

Retrieves a state option using its zero-based index.
읽는 시간 1분최근 업데이트: 2달 전

Definition

public IStateOption GetOption(int index)

Parameters

index

Index of the option, based on the order in which the options were declared.

Returns

Type

Description

IStateOptionThe option at the specified index.

Remarks

The index is zero-based.
Throws ArgumentOutOfRangeException when the index is out of bounds.

Examples

var firstOption = myState.GetOption(0);