Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetBool

Returns the value of the given boolean parameter.
Read time 1 minuteLast updated 6 days ago

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.