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

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.

主站蜘蛛池模板: 伊川县| 河曲县| 南郑县| 吉林市| 黑河市| 张家川| 时尚| 上思县| 石棉县| 全州县| 宽甸| 游戏| 台州市| 商都县| 喀什市| 远安县| 金山区| 民和| 临颍县| 开远市| 化隆| 扎赉特旗| 西畴县| 长白| 介休市| 大厂| 深州市| 德安县| 米林县| 军事| 镇雄县| 平凉市| 平顺县| 衢州市| 沙坪坝区| 白河县| 西贡区| 平凉市| 公安县| 长沙县| 阿拉尔市|