Toggle Group component

The Toggle Group component allows you to have many UI Toggles that work together, where only one can be selected or on at a time. When Toggles are in the same Toggle Group, selecting one Toggle will turn off all others. For the Toggle Group to work properly at start, you should either set all the Toggles within the Toggle group's Is On property to False or set only a single Toggle's Is On property to True.

The Toggle Group component does not create a renderable UI object, so attaching it to an empty GameObject will not create any visible element.

Once the Toggle Group component is attached to a GameObject, the GameObject it is attached to must be dragged into the Group property of each of the Toggles that will be contained ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.