unity Run in BG 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;
}