기술 자료

Unity Engine

Unity Engine

GetVariables

Retrieves all variables declared in the state machine.
읽는 시간 1분최근 업데이트: 2달 전

Definition

GetVariables()

Retrieves all variables declared in the state machine.
public IEnumerable<IVariable> GetVariables()

Returns

Type

Description

IEnumerable<IVariable>An
IEnumerable
of all IVariables declared in the state machine.

Remarks

The collection reflects the variables as declared, in their order of creation. To get the variables in a specific order, use StateMachine.GetVariables.

GetVariables(SortMethod)

Retrieves all variables declared in the state machine in a specific order using SortMethod.
public IEnumerable<IVariable> GetVariables(SortMethod sort)

Parameters

The sorting method.

Returns

Type

Description

IEnumerable<IVariable>An
IEnumerable
of all IVariables declared in the state machine, ordered using the provided SortMethod.

Remarks