- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 101字
- 2021-07-02 23:21:11
Move 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 like hit points, strength, speed, and so on, 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.
推薦閱讀
- MySQL數據庫管理實戰
- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- 從Excel到Python:用Python輕松處理Excel數據(第2版)
- Oracle 18c 必須掌握的新特性:管理與實戰
- Python深度學習原理、算法與案例
- 編程可以很簡單
- R Data Science Essentials
- Java 從入門到項目實踐(超值版)
- Practical GIS
- JavaWeb從入門到精通(視頻實戰版)
- SQL Server 2008實用教程(第3版)
- Mastering Object:Oriented Python(Second Edition)
- Unity 5 Game Optimization
- Learn Linux Quickly
- Swift 2 Design Patterns