- Home /
Toggles/Toggle Groups Question
I want to use a total of six independent toggles for six dice. The gig here is that you throw six dice, but you are free to choose 3 of the six and re-roll them.
I have added the toggle buttons on top of the dice after the roll, but no matter what I try, I can't seem to make them work independently, to be able to select more than one toggle (even so my end goal would be to only be able to select three). I have tried creating 6 Toggle Groups and adding each one to a different toggle to have them in separate groups, but that doesn't work either. If I remove the Navigation and set it to "None", they don't remain highlighted after pressing, but the boolean works fine, however that is not suitable for my needs. Please note: there is a button you press after selecting the dice in order to roll the selected ones.
Sadly there are no tutorials in English on youtube about using independent Toggle buttons (as radio buttons) or toggle groups, much less scripting in C#.
I'm not sure what "Navigation" means, since I've also tried setting it to "Explicit" and directed the arrows to the Roll Button. I've added scrips to each toggle button contained in the "Buttons" script I use for all buttons, since it makes it easier from there to get the info on which dices to roll.
Please advise a method of how one could go about this and please don't spear any details or link to material I could check out.
Your answer
Follow this Question
Related Questions
Do Something ONLY when all Toggles are On or Off 4 Answers
Use a toggle button to change a GameObjects visibility 2 Answers
How do i detect if toggle has been unchecked 0 Answers
[Unity3d beta 4.6] Make Active for UnityEngine.UI.Toggle 2 Answers
How to make an UI element clickable based on its fill amount? 1 Answer