DEV Community

Sunder Iyer
Sunder Iyer

Posted on

TIL How to Input Without Focus

2021-03-03

Sometimes you just want to change values in the editor with your keyboard/mouse while controlling your character with a gamepad.
Of course in Unity, the moment you click in the editor, you remove focus from the Game view and your inputs are not used. So you tend to have to click back and forth and it's kind of not fun.

However, if you happen to be using the Input System instead of the Input Manager, you can get around this with one simple checkbox click.
List of options
Under Window > Analysis > Input Debugger, you can find this option underneath Options.

It's worth noting that this option is meant for debugging and not really editing. Also, if you click or right-click in the editor, you will dispatch those to the game. So really this solution is only good if you are making a controller-centric game or if your keyboard/mouse inputs are routed through the Input Manager.

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

Top comments (0)

DevCycle image

Ship Faster, Stay Flexible.

DevCycle is the first feature flag platform with OpenFeature built-in to every open source SDK, designed to help developers ship faster while avoiding vendor-lock in.

Start shipping