找回密码
 注册帐号

扫一扫,访问微社区

asyncoperation 异步操作

2015-1-1 09:06| 发布者: 杨炎| 查看: 1944| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: asyncoperation 异步操作inherits fromyieldinstructionasynchronous operation coroutine.异步操作协同程序。you canyielduntil asynchronous operation continues, or manually check whether it's done (isdone) ...

asyncoperation 异步操作

inherits fromyieldinstruction

asynchronous operation coroutine.

异步操作协同程序。

you canyielduntil asynchronous operation continues, or manually check whether it's done (isdone) or progress (progress).

你可以yield直到异步操作继续,或手动检查它是完成的(isdone)或是进度中(progress)。

参见:application.loadlevelasync,application.loadleveladditiveasync,assetbundle.loadasync.

variables变量

isdone

has the operation finished? (read only)

有操作完成了吗?(只读)

progress

what's the operation's progress (read only)

操作的进度是多少?(只读)

priority

priority lets you tweak in which order async operation calls will be performed.

优先权,让你调整异步操作调用将被执行的顺序。

相关阅读

文章点评
相关文章