How to create Toggle Group

Hi,

I have tried to create Toggle Group with the new UI but still don’t know how it works.

First I’ve created two Toggle buttons in the canvas, then I’ve made an gameobject and added the Toggle Group compoment into it. The instruction tell:

To add Toggles to a group, you can simply drag the group object to the Toggles’ Group property in the inspector.

I’ve tried to drag the Toggle buttons to Toggle Group but there don’t seem to be a place for them? I’m not sure what “group object” here mean? I’ve made GameObject in the Canvas hierarchy and put Toggles as a child for it but that doesn’t seem to work either.

Any help?

You’ve got to do it the other way around - drag the Toggle Group onto the Toggle (into their “Group” slot). The group object is the object that has your Toggle Group component on it.

1 Like

Ok, that’s how it works! Thank you.