找回密碼
 注冊帳號

掃一掃,訪問微社區

application.iseditor 是否編輯器

2014-12-31 07:58| 發布者: 楊炎| 查看: 2703| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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!");

}

相關閱讀

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