找回密碼
 注冊帳號

掃一掃,訪問微社區

application.iswebplayer 是否網絡播放器

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

摘要: application.iswebplayer 是否網絡播放器static variswebplayer: booldescription描述are we running inside a web player? (read only)是否在一個網絡播放器中運行?(只讀)returns true if the game is being run ...

application.iswebplayer 是否網絡播放器

static variswebplayer: bool

description描述

are we running inside a web player? (read only)

是否在一個網絡播放器中運行?(只讀)

returns true if the game is being run from the unity web player.

如果這個游戲在unity網絡播放器中運行則返回真。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

if (application.iswebplayer)

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

}

}

if (application.iswebplayer) {

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

}

相關閱讀

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