Skip to main content

AnimatedBoolAccess

A class in Root.Township, Alta.Networking.Animation.

Small helper that exposes one named bool of a NetworkAnimator as a Set method, so a UnityEvent can drive a networked animator bool.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private AnimatedBool animatedBoolThe looked-up networked bool.
private NetworkAnimator animatorThe network animator holding the bool.
private string boolNameName of the animator bool to drive.

Methods​

MemberWhat it is
void Set(bool value)Sets the networked animator bool to the given value.
1 private and internal method
MemberWhat it is
private void Awake()Makes sure the animator is awake and looks up the bool by name.