Forum rules - please read before posting.

How to disable the mouse buttons in gameplay?

Hi i'm using Adventure creator for a third person shooter game, so i'm using a custom tps controller, and i only want the mouse functionality from AC is active for menu options or ui options, but no in gameplay, I set to interact with [E] key but it also work with the right click. But I'll use the mouse buttons in gameplay for other things, like to aim and shoot.

Comments

  • Welcome to the community, @CaroRed.

    In the Settings Manager's "Interface" panel, unchecking Mouse clicks have default functionality? will prevent left/right clicks from having an effect - leaving interactions to InteractionA/InteractionB.

    You can check this box through scripting when you open your Menus, or just rely on Unity UI - with Unity UI, the "Submit" button can be mapped to "mouse 0" to have left clicks work in menus.

    To hide the cursor while its locked, check Hide cursor when locked in screen's centre?.

  • Thank you Chris. Yes I found a solution through script.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.