官术网_书友最值得收藏!

Loading serialized objects asynchronously

Prefabs and other serialized content can be loaded in asynchronously via Resources.LoadAsync(), which will offload reading from disk onto a worker thread that eases the burden on the main thread. It will take some time for the serialized object to become available, which can be checked by calling the isDone property on the ResourceRequest object returned by the previous method call.

This is not ideal for Prefabs we need immediately at the start of the game, but all future Prefabs are good candidates for asynchronous loading if we're willing to create systems that manage this behavior.

主站蜘蛛池模板: 仁化县| 嘉荫县| 老河口市| 镇江市| 伊通| 广德县| 华阴市| 方山县| 浮梁县| 新野县| 香格里拉县| 乌拉特中旗| 陇西县| 颍上县| 萍乡市| 沅江市| 来安县| 介休市| 德惠市| 石家庄市| 辉南县| 霸州市| 嵊州市| 合川市| 烟台市| 宝应县| 贡山| 论坛| 上思县| 合江县| 宁德市| 洛扎县| 芜湖县| 彰化市| 始兴县| 宜兰县| 双流县| 四平市| 汝南县| 磐石市| 义马市|