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

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.

主站蜘蛛池模板: 乐山市| 雷波县| 扶绥县| 开原市| 郯城县| 金乡县| 尤溪县| 出国| 沙河市| 永善县| 彭泽县| 航空| 芦溪县| 博乐市| 沙洋县| 普兰店市| 兴义市| 西峡县| 旬阳县| 鲁山县| 德钦县| 大同市| 莱芜市| 陆河县| 石景山区| 靖安县| 永嘉县| 商河县| 宜章县| 察隅县| 扎鲁特旗| 工布江达县| 康保县| 绍兴县| 鄂托克前旗| 绩溪县| 伊川县| 连平县| 南乐县| 翁源县| 桑植县|