Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Odd bug when counting amount of times the mouse button has been pressed

$
0
0
So, I encountered something that I think is a bit odd and I was wondering if anyone could explain it to me. Basically, I have a script that counts how many times I have clicked on a group of specific game objects. It counts the amount of times I clicked on an object, updates an increment variable, and is then printed on a GUI box. For some odd reason, when I call the method that does the counting in Update, the GUI that displays the increment variable doesn't change. When I switch to...

Odd bug when counting amount of times the mouse button has been pressed

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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