- 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.
推薦閱讀
- Android Wearable Programming
- Deploying Node.js
- 微信公眾平臺與小程序開發:從零搭建整套系統
- Vue.js入門與商城開發實戰
- 算法大爆炸:面試通關步步為營
- Magento 1.8 Development Cookbook
- UVM實戰
- Scala編程(第5版)
- 寫給程序員的Python教程
- 深度探索Go語言:對象模型與runtime的原理特性及應用
- Django 5企業級Web應用開發實戰(視頻教學版)
- Distributed Computing in Java 9
- Practical GIS
- Java高并發編程詳解:深入理解并發核心庫
- 從零開始學UI:概念解析、實戰提高、突破規則