- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 100字
- 2021-06-24 12:13:08
Moving common data into ScriptableObjects
If we have a lot of different Prefabs with components that contain a lot of properties that tend to share data, such as game design values such as hit points, strength, and speed, then all of this data will be serialized into every Prefab that uses them. A better approach is to serialize this common data in a ScriptableObject, which they load and use instead. This reduces the amount of data stored within the serialized file for the Prefab and could significantly reduce the loading time of our scenes by avoiding too much repetitive work.
推薦閱讀
- Learning NServiceBus(Second Edition)
- Node.js+Webpack開發實戰
- Visual FoxPro 程序設計
- Instant Zepto.js
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- jQuery從入門到精通 (軟件開發視頻大講堂)
- 64位匯編語言的編程藝術
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- Mastering Apache Maven 3
- INSTANT Yii 1.1 Application Development Starter
- Beginning C++ Game Programming
- 從程序員角度學習數據庫技術(藍橋杯軟件大賽培訓教材-Java方向)
- 算法秘籍
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- Deep Learning for Natural Language Processing