• 中文
  • spine打包安卓后,出现白边的问题

unity版本:2020.3.21
spine版本:4.1.09
spine运行库版本:4.1
unity 线性空间下,已经使用了straight alpha,unity本地运行后也没有问题,但是打包出安卓后,就会出现问题

请问该如何解决,问题出现在哪里?

Related Discussions
...
  • Изменено

我很遗憾听到你遇到了麻烦。你能不能给我们看看纹理和材料的设置?
I'm sorry to hear you're having trouble. Could you please show us the texture and material settings?

已经正确设置贴图和材质球了

您是否正在使用通用渲染管道 (URP)?
Are you perhaps using Universal Render Pipeline (URP)?

现在没有使用URP渲染管线,是必须要使用URP渲染管线吗

无需切换到 URP。 我问是因为在使用 URP 时,您的材质设置是错误的。

如果它在 Unity 编辑器中正常工作,则可能是使用的 Spine 着色器未包含在 Android 构建中,而是使用了备用着色器,这看起来不正确。 您是否使用任何延迟加载机制,例如 Addressables、Asset bundles 等? 还是直接将骨架放置在启动场景中(不是从预制加载)时也会出现此问题?

骨架在 Inspector 中有多种材质吗? 它是否使用多种混合模式?


There is no need to switch to URP. I was asking because when using URP your material setup would have been wrong.

If it works correctly in the Unity Editor, it could be that the used Spine shader is not included in the Android build and that a fallback shader is used instead, which looks incorrect. Are you using any delayed loading mechanism, like Addressables, Asset bundles etc? Or does this problem occur also when placing the skeleton directly in the startup scene (not loading from a prefab)?

Does the skeleton have multiple materials in the Inspector? Does it use multiple blend modes?

更改了打包方式正常显示了,非常感谢

很高兴听到您已经解决了,感谢您回复我们。
Glad to hear you've figured it out, thanks for getting back to us.