Skip to content

Class: ToggleGroupComponent ​

A radio group (Unity's ToggleGroup, Cocos's ToggleContainer): the toggles whose group is this entity are mutually exclusive. Without allowSwitchOff one is always on — tapping the on one does nothing, and a group with none on turns its first on when the game starts. EntityEvent.ToggleGroupChanged on this entity (payload: the toggle's Entity now on, or null).

Extends ​

Constructors ​

Constructor ​

ts
new ToggleGroupComponent(): ToggleGroupComponent;

Returns ​

ToggleGroupComponent

Inherited from ​

Component.constructor

Properties ​

PropertyModifierTypeDefault valueInherited from
allowSwitchOffpublicbooleanundefined-
dirtypublicbooleantrueComponent.dirty
enabledpublicbooleantrueComponent.enabled

© 2026 PlayAdGentic