Toggle
The Toggle Object is a 2D GUI Object that has two states: checked or unchecked. Its initial state and colors can be customized in the Attributes.


Attributes
The Object's Attributes can be used to fully customize the Object. Explained below, they are:
Transformation

The Transformation Attributes deal with placement, rotation, and size in XY space. More information can be found here.
Toggle

The Toggle Attributes provide crucial data for a Toggle Object.
Is checkedcan be enabled or disabled. Enabled toggles it on and disabled toggles it off.
Style

The Style Attributes offer the user options to customize further visual aspects of the Toggle:
Handle Coloris the color of the Toggle's handle. It is the small circle which appears on the background of the Toggle.Checked Coloris the color of the background whenIs checkedis enabled.Unchecked Coloris the color of the background whenIs checkedis disabled.CSS Classescontain the CSS class names of the Object.Stylesheetcontains the CSS stylesheet of the Object. This can override any stylesheet provided in the Project Settings or a Scene2D. To address these in the Logic, please refer to the Object 2D Nodes.
Tag

This Attribute manages the tags for the Toggle. See more on tags here.
Last updated
Was this helpful?