找回密碼
 注冊帳號

掃一掃,訪問微社區

application.runinbackground 后臺運行

2014-12-31 09:10| 發布者: 楊炎| 查看: 3008| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: application.runinbackground 后臺運行static varruninbackground: booldescription描述should the player be running when the application is in the background?應用程序在后臺時是否應該被運行?default is fals ...

application.runinbackground 后臺運行

static varruninbackground: bool

description描述

should the player be running when the application is in the background?

應用程序在后臺時是否應該被運行?

default is false (application pauses when it is in background).

默認為假(當程序在后臺時暫停)

c#

javascript

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;

相關閱讀

文章點評
相關文章
女校游泳队彩金