Skip to main content

SetBoolean

A class in Root.Township, the global namespace.

Animator state behaviour that sets a bool parameter when its state or state machine is entered or exited.

Constructors​

MemberWhat it is
SetBoolean()Creates a SetBoolean with default values.

Fields​

5 private and internal fields
MemberWhat it is
private string boolNameName of the bool parameter.
private bool isEnabledOnEntryValue set on entry.
private bool isEnabledOnExitValue set on exit.
private bool isSettingEntryWhether to set the bool on entry. Default true.
private bool isSettingExitWhether to set the bool on exit.

Methods​

MemberWhat it is
override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)Sets the bool to isEnabledOnEntry if isSettingEntry is on.
override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)Sets the bool to isEnabledOnExit if isSettingExit is on.
override void OnStateMachineEnter(Animator animator, int stateMachinePathHash)Same as OnStateEnter, for entering the sub state machine.
override void OnStateMachineExit(Animator animator, int stateMachinePathHash)Same as OnStateExit, for leaving the sub state machine.