ドキュメント

Unity Engine

Unity Engine

GetBool

Returns the value of the given boolean parameter.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetBool(string)

Returns the value of the given boolean parameter.
public bool GetBool(string name)

Parameters

name

The parameter name.

Returns

Type

Description

boolThe value of the parameter.

Remarks

Return the current state of a bool parameter within the Animator Controller. Use the parameter’s name or ID to search for the appropriate one.

GetBool(int)

Returns the value of the given boolean parameter.
public bool GetBool(int id)

Parameters

id

The parameter ID.

Returns

Type

Description

boolThe value of the parameter.

Remarks

Return the current state of a bool parameter within the Animator Controller. Use the parameter’s name or ID to search for the appropriate one.