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

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.

主站蜘蛛池模板: 博罗县| 汪清县| 广平县| 阿城市| 和政县| 东丰县| 连江县| 乌恰县| 合山市| 南阳市| 安顺市| 荃湾区| 广丰县| 个旧市| 融水| 鄯善县| 哈尔滨市| 潜江市| 祁阳县| 南漳县| 平和县| 叙永县| 梁平县| 丘北县| 桐柏县| 长丰县| 万荣县| 凤凰县| 兴化市| 大邑县| 肥东县| 隆昌县| 肇东市| 梅河口市| 稻城县| 陈巴尔虎旗| 仪征市| 阿克苏市| 平原县| 肃宁县| 个旧市|