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

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.

主站蜘蛛池模板: 海安县| 綦江县| 历史| 长沙县| 丽江市| 汉源县| 汤阴县| 镇原县| 贵港市| 襄城县| 扎兰屯市| 调兵山市| 瓦房店市| 儋州市| 大田县| 独山县| 化德县| 文昌市| 贵南县| 当涂县| 剑阁县| 南投县| 泰来县| 汪清县| 南城县| 庆城县| 探索| 宜春市| 广东省| 双柏县| 科技| 珲春市| 莱芜市| 从化市| 利辛县| 江阴市| 西乌珠穆沁旗| 新宁县| 昆明市| 平邑县| 集安市|