Should the Player be running when the application is in the background?
Default is false (application pauses when it is in the background).
Android: Works only in cases if the application is unfocused, but visible. For example, when run in multi-window mode - Samsung Dex, Oculus Quest 2, ChromeOS, etc.
If the application is truly in background, the application pauses regardless of Application.runInBackground
option. If you want to execute tasks while in background, you need to implement background service.
Note: This property is ignored on iOS.
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Example() { Application.runInBackground = true; } }