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

  • Unity Game Optimization
  • Dr. Davide Aversa Chris Dickinson
  • 100字
  • 2021-06-24 12:13:08

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.

主站蜘蛛池模板: 顺义区| 广南县| 山丹县| 阿坝| 万州区| 扶沟县| 肥乡县| 盐津县| 乌拉特前旗| 台中县| 洪江市| 河津市| 渑池县| 房山区| 潜山县| 罗定市| 海晏县| 金湖县| 沙坪坝区| 陵水| 丽水市| 肥西县| 潞城市| 靖江市| 开封县| 永嘉县| 凤阳县| 涡阳县| 延寿县| 阜城县| 延津县| 富阳市| 永登县| 镇远县| 德阳市| 景德镇市| 海伦市| 新建县| 平原县| 烟台市| 磴口县|