Camera Control Using Mouse & Right Click

Hello,

I’m trying to control the camera using the mouse but only when right click is held down. This is really similar to how the camera controls work when input mode is set to Game and UI.

Show Mouse Cursor is true since the game i’m implementing depends heavily on mouse interactions. The issue is, when the mouse is visible and I click something on the screen, I can no longer infinitely rotate the camera because the mouse gets captured either in the viewport or my computer’s screen bounds (therefore setting mouse capture to “never” doesn’t solve this problem).

How can I get this to work?

Thank you.

bump bump

Bump - have the same issue