- Home /
Question by
andrew · Jul 02, 2010 at 09:35 AM ·
standaloneruninbackground
Is there any way to tell if the application is in the background when Application.runInBackground = true ?
Hi,
I would like to be able to disable a number of GameObjects when the application (standalone) is running in the background whilst allowing the rest of the game logic to continue to run. is it possible to tell if the application is running in the background (or its window has lost focus) ?
cheers andrew
Comment
Best Answer
Answer by Mike 3 · Jul 02, 2010 at 07:13 PM
There isn't (currently) a way to do it without resorting to a native code plugin (c++/objc, or invoking native OS functions from c# i guess)
thanks.. this is as i feared :) this feature of my project will need to be bumped back down my todo list for the moment but if i make any progress i will report back here...
Your answer
![](https://koobas.hobune.stream/wayback/20220613063658im_/https://answers.unity.com/themes/thub/images/avi.jpg)