Removes all internal references and listeners as well as removes children from the display list.
Do not use a Container after calling destroy.
Optionaloptions: DestroyOptions
Options parameter. A boolean will act as if all options have been set to that value
sets the box, firing onChange only when the value actually moves
A square box that is ticked or not, the toggle a settings row or an option list puts beside its label. It draws only the box and its tick - a caption is a
Labelthe game places next to it, so the two can be laid out and translated independently.Example