Skip to content

Toggle

extends TransitionControl

Inherits from Control

The Toggle class allows for easy creation of checkboxes or radio buttons in a game, allowing players to make selections or perform actions.

成员变量

Toggle.isOn : boolean
The current selected state of the checkbox.
Toggle.group : string
The name of the group to which the current checkbox belongs.