- Home /
Is there a way to keep Windows Standalone Player 'on top'?
I'm hoping there's a setting or script that can help me keep my running game (in windows) on top of all other windows. It has to run in windowed mode because it's part of a suite of other things going on, but it must stay focused or active or whatever. I don't mind if I have to tell it to come to front once per second or so.
Answer by BerggreenDK · Aug 05, 2011 at 01:05 AM
I am not sure, if what you need is the Unity player to keep runing, even when you select other windows, or its the visual part that is most important?
But, the default for the webplayer (as an example) is that its not running in background, when clicking away from the browser window.
This can be enabled in the Project settings in Unity or by script:
http://unity3d.com/support/documentation/ScriptReference/Application-runInBackground.html
Application.runInBackground = true;
But I am not sure if this was your real question?
No, it's not about whether it can run when not focused, it's about keeping the window on top of all other windows. Standalone player.
This option has to be included in the roadmap. Useful for multiplayer testing without needing to resize the editor to see both windows.
With this option, the build is always drawn ontop of the editor even when playing in the editor.
Your answer
Follow this Question
Related Questions
Standalone player in windows open fullscreen, but player settings says windowed 1 Answer
Player can't move in windows standalone 2 Answers
Standalone problems! 1 Answer
Can I make Ai using only a focus script and a bullet script? 1 Answer
Works in player but NullReferenceException in build. 2 Answers