Unity3D打包输出EXE后图片都变白色了
原因是一个场景文件中的资源太多了,sharedassets1.assets超过4G,加载资源失败。
Serialized file size of 4.30 GB (4617903696 bytes) exceeds maximum. File name: 'F:/CODING/Unity3D/XXX/Temp/StagingArea/Data/sharedassets1.assets'. Serialized files over 4.00 GB (4294967295 bytes) cannot be loaded by the player. Some likely ways to reduce this are utilizing asset bundles, re-balancing asset locations, or limiting their serialized size e.g. limiting the maximum texture sizes.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
解决办法有三:
1、缩减资源
2、将一部分资源放到前面场景中均分一下
3、将内嵌资源改为外部文件动态加载