Search Unity

2 Toggles both the same

Discussion in 'UGUI & TextMesh Pro' started by that_me, May 20, 2022.

  1. that_me

    that_me

    Joined:
    Apr 2, 2022
    Posts:
    23
    I have a problem with 2 toggles that are never both at the same screen. I want them to be the same so if one is on the other one is on. The 2 toggles are for a mute button. How can I do this?
     
  2. pixaware_pwedrowski

    pixaware_pwedrowski

    Joined:
    Oct 25, 2018
    Posts:
    116
    Use Actions - in a method that is being triggered on mute you can invoke it, and if you previously register appropriate methods to toggles you should be able to achieve what you want.