找回密码
 注册帐号

扫一扫,访问微社区

application.runinbackground 后台运行

2014-12-31 09:10| 发布者: 杨炎| 查看: 3042| 评论: 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;

相关阅读

文章点评
相关文章