application.iswebplayer 是否网络播放器

2014-12-31 08:10| 发布者: 杨炎| 查看: 2147| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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!");

}

相关阅读

文章点评
相关文章