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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -