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