Sly_Boots
Sly_Boots

Reputation: 195

How to make Unity Play Mode NOT force screen focus to Unity Editor?

The Unity project I work on takes a moment to run after pushing Play. Often times I'll hit play, and while it's thinking, will click into another window (I'm always looking up data I need to verify in the game). So while I'm looking at something else or typing something, Unity will wrest control of the screen and force the cursor into Unity editor and make Unity the focused window on my screen once Play gets going.

Is there a way to turn this off? I want to be able to hit play in Unity editor, and be able to ignore it and have it run like any other window, doing its thing where I left it. I don't want play mode to force the Unity editor to become the focused window.

Upvotes: 4

Views: 2465

Answers (2)

Samuel Barbeau
Samuel Barbeau

Reputation: 1

I'm on the version 2022.3.4f1. To have Unity play while you're focusing another window, you can go to Edit on the top left of the screen > Project Settings > Player > Resolution and Presentation > and check the Run In Background Checkbox as seen here

Upvotes: 0

Roberto
Roberto

Reputation: 11953

In recent Unity versions, the Game window has a dropdown that says Play Focused, change it to Play Unfocused.

Upvotes: 0

Related Questions