- Home /
This question was
closed Oct 27, 2014 at 08:00 PM by
fafase for the following reason:
Question is off-topic or not relevant
Unity 4.6 UI do something while button is pressed
How do I make that a scripts function runs while the button is pressed?
Comment
I just close that one because the question is too vague and mostly because you have the answer in the Learn section of Unity. The basics of the new UI are covered , it is only the basics but it has a part for the button.
Answer by Kiwasi · Oct 27, 2014 at 07:39 PM
You want to capture the on mouse down and keep doing your action until on mouse up.