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

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.

主站蜘蛛池模板: 宣恩县| 新民市| 十堰市| 军事| 绥宁县| 柳江县| 竹溪县| 固始县| 光泽县| 武穴市| 鸡东县| 镇赉县| 呼伦贝尔市| 永定县| 财经| 竹山县| 綦江县| 资溪县| 育儿| 南开区| 察哈| 波密县| 禹城市| 柳河县| 黎平县| 鹰潭市| 稷山县| 黄龙县| 清流县| 鹤庆县| 宾阳县| 芦溪县| 阿拉尔市| 福建省| 台北县| 卢氏县| 柳州市| 丘北县| 玛纳斯县| 深水埗区| 泗洪县|