Quantcast
Channel: Latest Questions by MasterBLB
Viewing all articles
Browse latest Browse all 44

OnMouseUp does not work

$
0
0
Hi I wrote a code: void OnMouseUp() { if(Input.GetKey(KeyCode.Mouse2)) rotateByMouse=!rotateByMouse; } I want to switch bool rotateByMouse by middle mouse button-yet this code suprisingly does not work?Anyone knows why?I've checked doc about MonoBehaviour.OnMouseUp(),but there is no mentioning it works only with left mouse button...If so,I have absolutly no idea what's wrong with my code :/

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>