1. Create two new Buttons, name them on and off respectively, and name the corresponding text on and off.
2. Set the OnClick() of the on button and click the plus sign, as shown in Figure
3. Set the OnClick() attribute of the off button:
complete ! !
Unity uses Button to control the display and hiding of pictures (super simple) without code
Guess you like
Origin blog.csdn.net/qq_44310867/article/details/115456033
Recommended
Ranking