I have a project where I want to have a cursor visible, and be able to interact with the UI and the game. Whenever I press and hold any mouse button, the mouse is captured and the camera looks around. How do I disable this?
From answers to similar questions, I have already tried to:
- Set Project Settings → Default Viewport Mouse Capture/Lock Mode to No Capture/Lock (and restarted the editor).
- Called PlayerController → Set input mode Game and UI, with lock mode set to Do Not Lock.
- Created events for mouse X and Y in my character blueprint.
- Some people suggested to uncheck Create default input bindings or something like that, but this option doesn’t exist in the Player Controller or Character classes.
But still, when I click and hold with any mouse button while in game, the camera looks around.
Calling PlayerController → Set Ignore Look Input is not a solution because that causes the Mouse X/Y events to always return 0.0 axis value in the character, and I need those actual values.
Expected result: I’m trying to make it look around when you hold left mouse button, pan when you hold middle mouse button, do nothing on right mouse button.