ドキュメント

Unity Engine

Unity Engine

GetVariable(int)

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

Definition

public IVariable GetVariable(int index)

Parameters

index

The index of the variable to retrieve.

Returns

Type

Description

IVariableThe IVariable at the specified index.

Remarks

The index is zero-based and reflects the order in which the variables were created. The index must be within the valid range of the variable list (see: StateMachine.VariableCount).