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

Load 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 behaviour.

主站蜘蛛池模板: 城口县| 静乐县| 溧阳市| 云龙县| 汶上县| 抚州市| 奉节县| 苏尼特左旗| 临邑县| 句容市| 清新县| 城固县| 嘉祥县| 邳州市| 仙游县| 铜陵市| 朝阳市| 新安县| 盈江县| 昌图县| 凌源市| 芜湖市| 巴塘县| 丹巴县| 水城县| 彩票| 天台县| 盖州市| 乐平市| 长丰县| 阿鲁科尔沁旗| 封丘县| 泗水县| 涿州市| 虹口区| SHOW| 克拉玛依市| 宣武区| 天柱县| 饶平县| 平顺县|