Json
JSON注意事项: Newtonsoft、LitJson都可以转成List和数组 Newtonsoft可以转成任意key的字典,LitJson只能转成key为string类型的字典 Newtonsoft转成json可保留汉字,LitJson会把汉字转成十六进制Unicode码 Newtonsoft 序列化 / 反序列化抽象类、接口时,创建一个JsonSerializerSettings类,其中字段TypeNameHandling设置为All或者Auto,序列化 / 反序列化时把这个setting类传参进去,就正常了 Newtonsoft存储字典Dictionary的结构: 123456789101112131415161718{ "0": { "id": 0, "status": "返回值为0", "metaData": { ...
Free Assets
✅Flooded Grounds - https://bit.ly/2ZfAxIT✅Sun Temple - https://bit.ly/38m5A8L✅Realistic Terrain Collection LITE - https://bit.ly/2L48vLB✅Rocky Hills Environment - Light Pack https://bit.ly/39uEkW8✅Conifers [BOTD] - https://bit.ly/3h6xXel✅Coconut Palm Tree Pack : https://bit.ly/363LTSg✅Nature Starter Kit - 2https://bit.ly/3oHW6vF✅Outdoor Ground Textures - https://bit.ly/306eljm✅Grass Flowers Pack Free - https://bit.ly/30cbmWS✅Terrain Tools Sample Asset Pack - https://bit.ly/2QnnI9S✅Book of...
DisallowMultipleComponent
DisallowMultipleComponentDisallowMultipleComponent : 不允许多个相同的组件挂载在同一个 GameObject 上
标签注解
XLua.GCOptimize: GC 代码优化对于一个 c#纯值类型(官网指一个只包含值类型的 struct,可以嵌套其它只包含值类型的 struct)或者 c#枚举值加上了这个配置,会使得该类型在 lua 和 c#间传递不产生 gc alloc,该类型的数组访问也不会产生 gc。(除枚举之外,包含无参构造函数的复杂类型,都会生成 lua table 到该类型,以及该类型的一维数组转换代码,可以优化转换性能)
检测并删除材质中记录的冗余Keywords和Shader属性
检测并删除材质中记录的冗余Keywords和Shader属性123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184#region classname /* ...