run in background unity 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;
}