- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 100字
- 2021-07-02 23:21:11
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.
推薦閱讀
- SPSS數據挖掘與案例分析應用實踐
- Java Web開發學習手冊
- 從零開始:數字圖像處理的編程基礎與應用
- Delphi程序設計基礎:教程、實驗、習題
- AngularJS Web Application Development Blueprints
- Mastering Ubuntu Server
- Building a Quadcopter with Arduino
- 零基礎輕松學SQL Server 2016
- CoffeeScript Application Development Cookbook
- RESTful Java Web Services(Second Edition)
- PHP 8從入門到精通(視頻教學版)
- Anaconda數據科學實戰
- R語言實戰(第2版)
- Mastering Drupal 8
- Python程序設計現代方法