application.isplaying 是否播放

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

摘要: application.isplaying 是否播放static varisplaying: booldescription描述returns true when in any kind of player (read only).当在任何种类的播放器时,返回真(只读)。returns true in the unity editor when ...

application.isplaying 是否播放

static varisplaying: bool

description描述

returns true when in any kind of player (read only).

当在任何种类的播放器时,返回真(只读)。

returns true in the unity editor when in play mode.

在unity编辑器中,如果处于播放模式时返回真。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

if (application.isplaying)

print("in player or playmode");

}

}

if ( application.isplaying ) {

print("in player or playmode");

}

相关阅读

文章点评
相关文章