- 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.
推薦閱讀
- PHP動(dòng)態(tài)網(wǎng)站程序設(shè)計(jì)
- 微服務(wù)設(shè)計(jì)(第2版)
- Rust編程:入門、實(shí)戰(zhàn)與進(jìn)階
- 深度學(xué)習(xí)經(jīng)典案例解析:基于MATLAB
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- 單片機(jī)應(yīng)用技術(shù)
- jQuery開發(fā)基礎(chǔ)教程
- 響應(yīng)式架構(gòu):消息模式Actor實(shí)現(xiàn)與Scala、Akka應(yīng)用集成
- “笨辦法”學(xué)C語言
- Building Wireless Sensor Networks Using Arduino
- 硬件產(chǎn)品設(shè)計(jì)與開發(fā):從原型到交付
- jQuery Mobile Web Development Essentials(Second Edition)
- 你好!Python
- Laravel 5.x Cookbook
- Test-Driven Java Development(Second Edition)