Which is better to use, MouseButtonOneClick or Down? Is there any difference?
MouseButtonOneClick is deprecated so it’s encouraged to use MouseButton1Down and MouseButton1Up.
But whats the difference?
Why is it encouraged?
MouseButton1Click
is used for single clicks. MouseButton1Down
is used if the button is held down.
Deprecated means it still works but replaced by a new and more optimized code with more function-ability.
You all helped, thanks everyone!
I might be wrong but MouseButton1Click isn’t deprecated? It wouldn’t make sense to deprecate something that works perfectly fine for its intended use case?
The difference is MouseButton1Click fires when pressed down and up (click and release) within the bounds of a button, while MouseButton1Down fires when only pressed down within the bounds of the button (click only).
Please mark the best answer as the solution so to help other DevForum members to find it easily.
In my opinion, I think I would recommend MouseButton1Click
just because I think it’s simpler. I don’t really use MouseButton1Down
often, but I know they both serve a similar purpose.
At the end of the day, it’s your choice.