Game Development Reference
In-Depth Information
• A child Image of the Background containing a Checkmark sprite overlaying
the toggle box
• A Label offset to the right of the toggle box as a child of the Background
This system is completely flexible and you can modify it to your needs as you wish,
the default Unity version is basically just a quick example.
Looking at the Toggle component that was added to the parent object, we can glean
what is actually needed for the Toggle to function:
As we can see, the Toggle has the same Selectable component base as the Button
control and an event handler; this time however, it is using the On Value Changed
event instead of Clicked .
 
Search WWH ::




Custom Search