Users make choices, and often, these choices have one of two options (for example, sound on or off), or sometimes one of several possibilities (for example, difficulty level as easy/medium/hard). Unity UI Toggles allows users to turn options on and off; and when combined with Toggle Groups, they restrict choices to one of the group of items. In this recipe, we'll first explore the basic Toggle, and a script to respond to a change in values. Then, we'll extend the example to illustrate Toggle Groups, and styling these with round images to make them look more like traditional radio buttons.
The screenshot shows how the button's status changes are logged in the Console panel when the scene is running:
![](https://static.packt-cdn.com/products/9781788471909/graphics/assets/bacaea1e-3e22-4edc-9941-a46ce48400a8.png)