unity3d - 'Input' does not contain a definition for 'GetMouseButton' how is this possible? -


i've wanted try developing touch screen reason said:

'input' not contain definition 'touched'

then tried old fashioned way, worked me million times, doesn't.

'input' not contain definition 'getmousebutton'

does know source of problem?

    void update() {         if(input.getmousebutton(0))             debug.log("pressed left click.");          if(input.getmousebutton(1))             debug.log("pressed right click.");          if(input.getmousebutton(2))             debug.log("pressed middle click.");      } 

oh god, stupid. i've reinstalled unity, vs , maybe twice. , didn't see caused problem... problem named script 'input' oh gooood


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -