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

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.

主站蜘蛛池模板: 汝城县| 镇坪县| 南川市| 咸阳市| 自治县| 安多县| 湖北省| 深圳市| 阿拉善左旗| 庆元县| 平泉县| 富宁县| 仙游县| 邯郸市| 甘洛县| 广丰县| 瓦房店市| 通州区| 屏山县| 泸州市| 寿光市| 桃江县| 乌海市| 兴山县| 平罗县| 吉安市| 仁寿县| 广平县| 阜南县| 阳西县| 新竹市| 乌什县| 老河口市| 日喀则市| 慈溪市| 阳谷县| 岑巩县| 张家川| 泰来县| 靖宇县| 遂溪县|