找回密碼
 注冊帳號

掃一掃,訪問微社區

asyncoperation 異步操作

2015-1-1 09:06| 發布者: 楊炎| 查看: 1912| 評論: 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.

優先權,讓你調整異步操作調用將被執行的順序。

相關閱讀

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