This version of Unity is unsupported.

AnimatorControllerPlayable.GetBool

Declaration

public bool GetBool(string name);

Declaration

public bool GetBool(int id);

Parameters

name The parameter name.
id The parameter ID.

Returns

bool The value of the parameter.

Description

Returns the value of the given boolean parameter.

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.