- Home /
Question by
AndreasX12 · Apr 26, 2013 at 12:33 PM ·
buttonmouseclickuprepeatbutton
GUI Repeatbutton up?
Hello, how can I see when my Repeatbutton is not pressed anymore?
Thanks, Andreas.
Comment
Best Answer
Answer by Bunny83 · Apr 26, 2013 at 12:45 PM
Something like this:
// C#
bool oldButtonState = false;
if (GUI.RepeatButton(...))
{
oldButtonState = true
}
else
{
if (oldButtonState)
{
// Button up event
}
oldButtonState = false;
}
Thank you so much! just what I was looking for :D And even in C# although I forgot to say what language I was using, thanks, thanks, thanks :D :D
Your answer
Follow this Question
Related Questions
OnMouseDown() Doesn't work 17 Answers
RepeatButton AND Button at the same time 1 Answer
Simulate a mouse Click? 2 Answers
Click Goes Everywhere 0 Answers
Help with resize script 1 Answer