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

  • 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.

主站蜘蛛池模板: 漳州市| 余姚市| 米林县| 勐海县| 武乡县| 阿勒泰市| 德化县| 阳春市| 延边| 海盐县| 越西县| 绍兴县| 太仓市| 保康县| 甘泉县| 抚顺市| 莱阳市| 临泽县| 滦南县| 巴塘县| 甘孜| 都兰县| 迁安市| 南涧| 中卫市| 九寨沟县| 通海县| 普安县| 西宁市| 仁布县| 白沙| 平乐县| 海宁市| 合作市| 鹤山市| 同德县| 登封市| 丹阳市| 乌恰县| 哈尔滨市| 福海县|