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

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.

主站蜘蛛池模板: 宿松县| 油尖旺区| 海伦市| 师宗县| 包头市| 汉寿县| 镇康县| 雷山县| 永靖县| 开原市| 宁城县| 施秉县| 丹巴县| 灵璧县| 石狮市| 扎兰屯市| 临江市| 建湖县| 张家川| 惠来县| 通榆县| 元朗区| 余姚市| 新绛县| 阿勒泰市| 德钦县| 墨竹工卡县| 邵阳市| 临泽县| 郑州市| 合作市| 黎城县| 广饶县| 南部县| 涞源县| 东乡县| 罗甸县| 屯昌县| 贡嘎县| 阳朔县| 鲁山县|