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

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.

主站蜘蛛池模板: 门源| 竹北市| 江永县| 苍梧县| 浦县| 平罗县| 勃利县| 山阴县| 鸡泽县| 宣城市| 吉水县| 文登市| 炉霍县| 全南县| 叙永县| 麻江县| 天峨县| 湘潭县| 永兴县| 界首市| 沧源| 遵义县| 遂川县| 县级市| 吉首市| 建昌县| 尉犁县| 瑞昌市| 囊谦县| 龙口市| 台中县| 安徽省| 毕节市| 安丘市| 永登县| 富阳市| 蓝田县| 南乐县| 雷山县| 信宜市| 惠来县|