Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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
8
Question by David 3 · Jan 12, 2011 at 02:59 PM · windowsfocus

stop unity pausing when it loses focus

On windows,

how do i stop unity pausing when unity loses focus? [ie i click on another window?]

thanks

David

Comment
Add comment · Show 1
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 gringofxs · Apr 26, 2017 at 08:42 PM 0
Share

is possible to IOs and android, ?

4 Replies

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

Answer by Jessy · Jan 12, 2011 at 03:06 PM

http://unity3d.com/support/documentation/ScriptReference/Application-runInBackground.html

Comment
Add comment · Show 3 · 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 yoyo · Jan 12, 2011 at 09:37 PM 0
Share

Cool, I didn't know you could do that.

avatar image douglasdaquino · Aug 10, 2017 at 03:06 PM 0
Share

the link is not working, it seems like they moved to another place or removed it completely... anyone have the up to date link?

avatar image shieldgenerator7 douglasdaquino · Mar 23, 2021 at 06:37 AM 0
Share

https://docs.unity3d.com/ScriptReference/Application-runInBackground.html

avatar image
23

Answer by jharri30 · Jan 10, 2014 at 02:40 PM

This solution from burnumd, worked for me. You can change the setting via the menu rather than through code...

"In the editor, go to Edit -> Project Settings -> Player. The inspector pane will now change to show the player settings. Look for the option that says "Run In Background" and check it."

http://answers.unity3d.com/questions/9899/how-do-you-keep-your-game-running-even-when-you-sw.html

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 douglasdaquino · Aug 10, 2017 at 03:07 PM 0
Share

Thanks jharri30 for pointing out to burnumd solution... it worked like a charm!

avatar image
0

Answer by TSCSimulation_AH · Nov 20, 2018 at 10:53 AM

Doing some necromancy here, but just to add, you still can't move around or interact with the Unity application if it loses focus. It will still run, but you will be unable to do anything.

Anybody got a solution?

Comment
Add comment · 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
0

Answer by ThirtysixLab · Feb 14, 2019 at 10:28 AM

@David 3

(on Win) If you have several tasks on the taskbar (bottom), try clicking on the Unity task and again and again until the next window appears over the unity window. The Unity process should still running.

Comment
Add comment · 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

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

6 People are following this question.

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

Related Questions

A node in a childnode? 1 Answer

How can I bring to front a window called by an script in unity? 1 Answer

GUIText multi-platform and multi-resolution position 1 Answer

using Array.Sort Method (Array, Array) in a Metro App 0 Answers

Porting a game to Windows, imput/game settings on launch? 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