Skip to main content

SetBoolParameter

A class in Root.Township, the global namespace.

Sets one bool parameter on an animator, for wiring to events.

Constructors​

MemberWhat it is
SetBoolParameter()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private Animator animatorThe animator to change.
private int parameterIdHash ID of the bool parameter.

Methods​

MemberWhat it is
void SetInverseParameter(bool value)Sets the parameter to the opposite of the value.
void SetParameter(bool value)Sets the parameter to the value.