Quantcast
Channel: Answers by "KubaPrusak"
Viewing all articles
Browse latest Browse all 21

Answer by KubaPrusak

$
0
0
Your button has by default a Button Script. At the bottom of this component there is an OnClick(). You have to create a script and attach it to any gameobject so that it is running. In that custom script you have to have a GameObject that you assign to this panel you want to show/hide. Then you have a public void that toggles this panel (ie. panel.SetActive(true/false);). Then on the button in the OnClick() section you press the + button, select the gameobject that has your custom script, and then with the dropdown select your class and the void you just wrote.

Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>