disable mouse lock temporarily?

gekido

Member
Trying to add some debugging into my game, and I need to disable the mouse lock that happens when you click the mouse.

Basically I have some UI that I'm displaying and want to interact with but when I click the mouse the mouselock overrides (doesn't detect that i'm over a UI) and bypasses the UI events.

Anyone know how I can do this?
 
This should be no problem. If you run the demo, you can use the demo UI to navigate (e.g. use the arrows to move to different demo locations). Do you have a Graphics Raycaster on your UI?
 
Hmm will dbl check. It's a debug console from the asset store that has worked for me forever...

Maybe I just need to add my own pause code to pop the menu / manage the mouselock etc...
 
Top