Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Sebas · May 15, 2010 at 06:26 AM · fullscreen

How to prevent a fullscreen application from minimizing

I'm running my standalone fullscreen application across multiple monitors on a stretched desktop. As soon as the user moves the mouse offscreen and clicks, my application minimizes to the taskbar (Is that even supposed to happen? Offscreen clicks even though it's maximized across all monitors?).

Is there any way to prevent the application from minimizing, no matter where I click?

-Sebas

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
6
Best Answer

Answer by qJake · May 15, 2010 at 09:29 AM

Unity does not support multiple monitors by itself, as it stands right now. When a DirectX/OpenGL fullscreen application loses focus, Windows is designed to "minimize" the game, and Unity will typically "pause" the game (i.e. not update anything) when it loses focus. You're losing focus because DirectX/OpenGL applications typically only tie into the primary display adapter, ignoring any secondary ones. Unity isn't the only game/game engine that behaves like this, either, in fact the vast majority of PC games also behave this way. Unfortunately, there's really nothing you can do about this, short of writing some extension code for Unity by tapping into its low-level API's (if you have Unity Pro), though if you were even to do that, I'm not sure you could code in support for multiple monitors at that point, either.

Short answer: No. This is a fundamental "by-design" issue with Windows, and full-screen graphics applications. You might be out of luck unfortunately.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ruudvangaal · Dec 15, 2021 at 04:02 PM 0
Share

Although this is marked 'best answer', I think the answer bij AsifHasan is better and comes with a fix (enable 'Visible in Background').

avatar image
11

Answer by AsifHasan · Jun 13, 2015 at 09:36 AM

Enable "Visible in background" under Build settings/Standalone

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image coutlass-supreme · Jan 06, 2016 at 09:47 PM 0
Share

this is actually a property in "player settings>quality".

But it works perfectly.

Thank you.

avatar image livingtech · Nov 21, 2016 at 04:44 PM 3
Share

It is now under Project Settings -> Player -> Resolution and Presentation (at least in 5.4.2f2).

avatar image bear_general · Jun 20, 2021 at 09:28 AM 0
Share

Also in this place I recommend enabling "Run in background"

avatar image ruudvangaal · Dec 15, 2021 at 04:03 PM 0
Share

Better fix than the one marked with 'best answer'. Thanks!

avatar image
2

Answer by lowbloodsugar · May 20, 2010 at 12:06 AM

This is actually a pretty serious issue for us too. It basically makes running support applications impossible.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kengeary · Jun 04, 2014 at 04:03 PM 0
Share

IS there an update to this or similar issue? I am only running on one maonitor, kiosk mode for customer (lobby application). burning in computer (Win 8) over several days, at random time the unity self running demo I created (.exe) just $$anonymous$$imizes to taskbar, no windows message of any sort (I shut down everything, no virus checker, no screensaver, power options full on, etc.) this could give us a black eye by our customer.

avatar image PatrickWoo · Feb 25, 2015 at 05:02 PM 0
Share

I am also using Unity for an kiosk application running as an interactive installation piece in a gallery of sorts. The Unity application starts with Windows 7 in full-screen mode and works for a while, but after a few $$anonymous$$utes, it suddenly becomes $$anonymous$$imised in the taskbar, even when no new windows or dialog boxes are popping up. This is very troubling behavior and renders my application useless in the context of the project.

avatar image
2

Answer by ThaBukkow · Mar 20, 2015 at 11:26 AM

It might be a bit late, but I use this for Kiosk mode applications.

You can start the game with this batch script:

@ECHO OFF game.exe -popupwindow -screen-width 1920 -screen-height 1080

This starts the game in a window with no borders (fake full screen). This way it will not minimize when it loses focus.

Make sure you select "run in background" in the unity settings.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image madpoet0204 · May 05, 2017 at 06:54 PM 0
Share

Do i put this in the shell or other? @ECHO OFF game.exe -popupwindow -screen-width 1920 -screen-height 1080

avatar image OLGV · Sep 20, 2017 at 11:51 AM 0
Share

You are a STAR @ThaBukkow

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

disable esc to exit full screen? 2 Answers

Where is FullScreenMovieScalingMode used 1 Answer

How to check if fullscreen on or off? 1 Answer

FullScreen Mode Help 1 Answer

Change resolution, but not screen size. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges