我模仿MixAndMatchSkinsExample中的OptimizeSkin函数,试图对替换后的皮肤进行打包。在Unity中运行时,看起来一切正常,但是在build好的exe程序中,我一旦按下repack按钮触发了OptimizeSkin函数,所有图片就会变成半透明的白图。我不知道哪里出了毛病?我的函数和示例脚本中的一模一样。我尝试build示例,一切也都正常运行。
谢谢!
=====
Mimicking the OptimizeSkin function in MixAndMatchSkinsExample, I tried to package the new skin. When running in Unity, everything looked fine, but in the built exe, once I pressed the repack button to trigger the OptimizeSkin function, all the images turned into translucent white images. I don't know what went wrong. My function is exactly the same as in the sample script. I tried to build example and everything worked.
Thank you very much!