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

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.

主站蜘蛛池模板: 纳雍县| 万源市| 沧源| 乌拉特后旗| 蓬安县| 滨州市| 清苑县| 罗甸县| 梓潼县| 临湘市| 浪卡子县| 缙云县| 锡林浩特市| 上林县| 阿巴嘎旗| 英山县| 南澳县| 衡阳市| 沙洋县| 天气| 闽侯县| 徐闻县| 昌图县| 安庆市| 南岸区| 彭山县| 耒阳市| 宜阳县| 鹰潭市| 邳州市| 扎兰屯市| 七台河市| 左权县| 容城县| 米脂县| 昭通市| 平江县| 盐池县| 岳阳县| 阜南县| 阜新|