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

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)