Question by
sarass · Oct 05, 2016 at 06:40 PM ·
mouseclickenable and disable script
Enabling and disabling component using mouse button
Hello everyone, I have benn trying to be able to enable ande disable an object by clicking on another object. The idea is to click on a dot, for example, and a text next to it to appear and disappear if i click again. The script i created is this In the inspector I also added the gameobject 'desc' as a public gameobject. I tried using the eventsystem on a button ui element but the text will only appear and won't disappear. Any suggestions?
script.png
(12.4 kB)
Comment