Hi, I’m using Input.GetMouseButton(0) as a condition for an if block. It works fine but when I click on the taskbar or on another application window (e.g. a yahoo messenger window), or anywhere outside the unity screen, the Input.GetMouseButton(0) becomes true and stays true until i click again. That is,
- i click outside the unity screen
- i hover over the unity screen without pressing on the mouse buttons
- But Input.GetMouseButton returns true.
Thanks