- Home /
How can I add to a List<> many toggle group selected values at same time?
Hello,
I have 4 groups, each group contains 4 toggle group with 2-2 options. Every option value is 0 or 1.
After I choose one value from all toggle groups , i want to add every choice to a list with a button for example. I spent hours with it, but i didn't find a good solution. How can I do it correctly (Unity version 2019.4.15)?
Thanks, Roland
Answer by gigos22 · Apr 21, 2021 at 04:26 PM
I found a similar question with good answers on stackoverflow:
https://stackoverflow.com/questions/52739763/how-to-get-selected-toggle-from-toggle-group/52739916
I believe you can adjust the solutions offered there to fit your needs.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
how do i check if a list contains elements from another list? 1 Answer
How to reset the state of other buttons when clicking on one of them 0 Answers
Toggle Menu Not Working 0 Answers
Does anyone know how to make a Dropdown inside an element of another Dropdown? 0 Answers