0
\$\begingroup\$

I am developing a game with Unity 2019 LTS. And there is a menu scene in the game. Player should select a character and difficulty level in that scene. Both of them have multiple options. For example, there are 2 characters and 3 difficulty levels(Easy, Medium, Hard). In order to accomplish this process I used Toggles and Toggle Groups like below.

Character Selection Toggle Group

  • Character 1
  • Character 2

Difficulty Level Toggle Group

  • Easy
  • Medium
  • Hard

But, when player selects an option in one group, selected option in the other group becomes unselected. How can I solve this problem?

\$\endgroup\$
0
\$\begingroup\$
  • Just have the check on my project(2020.3.23f1 LTS), have the same setup as you and everything is working normal.
  • Make sure that you drag the correct ToggleGroup GameObject into the Group field of Toggle Child.
\$\endgroup\$
4
  • \$\begingroup\$ I have two different panels. These panels have toggle group components. And they are attached their child toggles. I checked your warnings. Design seems correct. But, nothing changed :( \$\endgroup\$
    – Tafo
    Nov 23 at 13:33
  • \$\begingroup\$ if you don't mind, u send me a github link with only that scene and I can have a check over for you. \$\endgroup\$
    – Trần An
    Nov 24 at 1:00
  • \$\begingroup\$ I changed the design and used "next" and "previous" buttons instead of toggles. \$\endgroup\$
    – Tafo
    Nov 25 at 6:52
  • \$\begingroup\$ Does it work as you want it to be ? \$\endgroup\$
    – Trần An
    Nov 26 at 4:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.