application.iseditor 是否编辑器

2014-12-31 07:58| 发布者: 杨炎| 查看: 2499| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: application.iseditor 是否编辑器static variseditor: booldescription描述are we running inside the unity editor? (read only)是在unity编辑器内运行?returns true if the game is being run from the unity edi ...

application.iseditor 是否编辑器

static variseditor: bool

description描述

are we running inside the unity editor? (read only)

是在unity编辑器内运行?

returns true if the game is being run from the unity editor; false if run from any deployment target.

如果游戏从unity编辑器中运行,返回真;如果从其他部署目标运行返回假。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

if (application.iseditor)

print("we are running this from inside of the editor!");

}

}

if (application.iseditor) {

print("we are running this from inside of the editor!");

}

相关阅读

文章点评
相关文章