unity game running in backgroudfn code example
Example: how to allow unity to continue in background
void Awake () {
if (Application.isEditor)
Application.runInBackground = true;
}
void Awake () {
if (Application.isEditor)
Application.runInBackground = true;
}