找回密碼
 注冊帳號

掃一掃,訪問微社區

application.canstreamedlevelbeloaded 流關卡被加載

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

摘要: application.canstreamedlevelbeloaded 流關卡被加載static functioncanstreamedlevelbeloaded(levelindex: int) : booldescription描述can the streamed level be loaded?能流模式加載的關卡是否被加載?參見:getst ...

application.canstreamedlevelbeloaded 流關卡被加載

static functioncanstreamedlevelbeloaded(levelindex: int) : bool

description描述

can the streamed level be loaded?

能流模式加載的關卡是否被加載?

參見:getstreamprogressforlevel函數.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

if (application.canstreamedlevelbeloaded(1))

application.loadlevel(1);

}

}

// check if level at index 1 can be loaded.

// if it can be loaded then load it.

//檢查如果索引為1的關卡可以被加載

//如果能被加載就加載它

function update() {

if (application.canstreamedlevelbeloaded(1)) {

application.loadlevel(1);

}

}

o static functioncanstreamedlevelbeloaded(levelname: string) : bool

description描述

can the streamed level be loaded?

能流模式加載的關卡是否被加載?

參見:getstreamprogressforlevel函數.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

if (application.canstreamedlevelbeloaded("level1"))

application.loadlevel("level1");

}

}

// check if "level1" can be loaded, if it can be loaded then load it.

//檢查如果level1可以加載,如果能加載就加載它

function update() {

if (application.canstreamedlevelbeloaded("level1")) {

application.loadlevel("level1");

}

}

相關閱讀

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