Hello, how can I make something happen when I release my mouse from my button?
This is my code in C# for the MouseDown:
if(GUI.Button(new Rect(0, ((Screen.height / 2) - 128), 256, 256), "", GUILeft)) {
TurnLeftInputDown();
}
This is how it should act:
When you press the button it should run the “TurnleftInputDown” function 1 time, that’s why I don’t use RepeatButton.
And when you release the mouse, it should run another function.
Thanks, Andreas ![]()
Actually GUI buttons execute on mouse up, so your real question should be how to execute a function on the mouse down.
– robertbu