Skip to main content

AnalyticalButtonGroupAutoEnabler

A class in Root.Township, the global namespace.

Enables every AnalyticalButton among its children (inactive ones too) when it's enabled, and disables them when it's disabled.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private AnalyticalButton[] buttonsChild AnalyticalButton components, filled automatically including inactive children.

Methods​

2 private and internal methods
MemberWhat it is
private void OnDisable()Sets IsEnabled false on all child buttons.
private void OnEnable()Sets IsEnabled true on all child buttons.