Reputation:
I understand in order to create a toggle group, I have to select the game object I want as the holder/parent of the toggle objects, and then in the Inspector
, click on Add Component
and then of course select UI -> ToggleGroup
Is it wise to select Canvas
to be the holder/parent of the group, or should I create a Panel
first and then set the Panel
as the holder/parent, or...?
Is there a set of guidelines and what might be a good design regarding this situation?
Upvotes: 0
Views: 3498
Reputation: 2167
Depends on your Canvas. If its a screen overlay type I would advice to create a holder for the toggles, since you might want to have multiple toggle groups. If for example its a world space canvas holding only the Toggles then adding the Toggle group component to the canvas itself shouldn't be an issue.
Upvotes: 0