Application翻译:^牛^魔王
- absoluteURL
- backgroundLoadingPriority
- CancelQuit
- CanStreamedLevelBeLoaded
- CaptureScreenshot
- dataPath
- ExternalCall
- ExternalEval
- GetStreamProgressForLevel
- internetReachability
- isEditor
- isLoadingLevel
- isPlaying
- isWebPlayer
- levelCount
- loadedLevelName
- loadedLevel
- LoadLevelAdditiveAsync
- LoadLevelAdditive
- LoadLevelAsync
- LoadLevel
- LogCallback
- OpenURL
- persistentDataPath
- platform
- Quit
- RegisterLogCallbackThreaded
- RegisterLogCallback
- runInBackground
- srcValue
- streamedBytes
- systemLanguage
- targetFrameRate
- temporaryCachePath
- unityVersion
- webSecurityEnabled
Application.runInBackground 后台运行
static var runInBackground : bool
Description描述
Should the player be running when the application is in the background?
应用程序在后台时是否应该被运行?
Default is false (application pauses when it is in background).
默认为假(当程序在后台时暂停)
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
Application.runInBackground = true;
}
}
// Make the game run even when in background
// 让游戏在后台时也运行
Application.runInBackground = true;
最后修改:2010年12月14日 Tuesday 23:35