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
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
allowSwitchOff | public | boolean | undefined | - |
dirty | public | boolean | true | Component.dirty |
enabled | public | boolean | true | Component.enabled |