Skip to main content

ToggleChildrenActive

A class in Root.Township, the global namespace.

A tiny component whose ToggleActive flips every direct child on or off. Meant to be called from a Unity event.

Constructors​

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

Methods​

MemberWhat it is
void ToggleActive()Flips the active state of each direct child of this transform.