public static bool runInBackground ;

描述

当应用程序在后台时,播放器是否应该运行?

默认值为 false(应用程序在后台时将暂停)。

注意:在 Android 和 iOS 上,将忽略此属性。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Application.runInBackground = true; } }