I'v a function than create a sphere over a plane on the hitpoint of the mouse cursor when I press the left button of the mouse.
I want to make the object growing while the mouse button is pressend, and stop growing when I release the mouse.
I'm trying to do that with Input.GetMouseButtonUp and Down without success :(
Here is my actual code
asked Mar 21 '11 at 02:46 PM
A few things, you'll probably want something more like:
And you'll want this to happen over course of many calls to Update:
GetMouseButtonUp and GetMouseButtonDown only get called once.. just on the frames those events take place.
answered Mar 21 '11 at 03:09 PM