WebGL谷歌提示内存不够(RuntimeError:memory access out of bounds,火狐提示索引超出界限(RuntimeError:index out of bounds)

833 阅读1分钟

报错信息

火狐

在这里插入图片描述在这里插入图片描述

谷歌

在这里插入图片描述
在这里插入图片描述

解决方案

检查触发bug的时候有无JsonConvert.SerializeObject
将对象重新序列化,WebGL仅仅支持Unity自身的序列化,不支持外部的其他序列化方式。

参照这个博客:
也是我写的,

https://blog.csdn.net/GoodCooking/article/details/125401330?spm=1001.2014.3001.5501

点击我直接到

Enjoy