官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 襄汾县| 青岛市| 山东省| 西盟| 黄冈市| 盐津县| 隆子县| 高邮市| 镇沅| 阳新县| 额敏县| 鄢陵县| 酒泉市| 乳山市| 基隆市| 胶南市| 北碚区| 莫力| 蓝山县| 衡南县| 大足县| 察雅县| 瓮安县| 格尔木市| 苏州市| 江永县| 乌鲁木齐县| 宜黄县| 和静县| 和顺县| 信丰县| 武汉市| 林甸县| 齐齐哈尔市| 浦城县| 保康县| 石狮市| 上虞市| 崇仁县| 玉屏| 乐都县|