Input.getmousebutton(0)

Hi,

I am making a pixel art thing in unity. So far it instantiates a grid at the start and you can zoom in and out and move the camera. The problem is with the drawing itself. Currently it’s working by raycasting from the mouse position whenever mouse(0) is down and when it collides with one of the grid elements, that element changes colour. However when I move my mouse with a high speed some grid elements wont turn color because I assume the Update method, in which I call Input.getmousebutton(3) isn’t called enough times under a second. So could you suggest any other method which may work? Thank you

Hello, this method should work! It repeatedly invokes a method of your choice.