iyes

在unity项目中,界面上挂了spine角色,界面关闭时会有明显的闪白,请问这个效果怎么去掉。

spine 3.8.99
unity 2020.3

谢谢!
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
iyes
  • Messaggi: 6

Harald

恐怕机器翻译无法正确翻译您的问题。 您能否更详细地描述您的设置是什么样的? 还请显示您的骨架组件检查器设置的一些屏幕截图(包括“高级”折叠)、您的材质设置,如果可能的话,还请显示您用于在 Spine 编辑器中导出的图集导出设置。
I'm afraid machine translation failed to translate your question properly. Could you please describe in more detail what your setup looks like? Please also show some screenshots of your skeleton component Inspector settings (including the Advanced foldout), your Material settings, and if possible also your atlas export settings that you used to export from in the Spine Editor.
Avatar utente
Harald

Harri
  • Messaggi: 4196

iyes

你好,Harald,,先感谢你。

spine导出设置 和 unity 中的骨架设置 请看附件图。

spine导出的角色,在场景内是正常的效果,不确定是否是untiy 中设置的问题。

这个问题只出现在界面关闭时,界面带有下降 渐隐的效果,此时spine资源 会在界面渐隐时有一个闪白。
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
iyes
  • Messaggi: 6

Harald

我假设您正在使用 SkeletonGraphic 并且您正在使用 CanvasGroup 并降低菜单淡出效果的 Alpha 值。 如果这样做,则需要在 SkeletonGraphic 的材质中启用 Canvas Group Compatible。 请务必在 SkeletonGraphic 组件中使用与 SkeletonGraphic 兼容的材质,因为 Spine/Skeleton 等普通着色器会导致问题(如 这里)。 请注意,屏幕截图中显示的 SkeletonDataAsset 旁边不是普通材质。 对于 SkeletonGraphic,所有骨架都使用 SkeletonGraphicDefault 等常用材质,图集纹理由每个 CanvasRenderer 分配。
-----
I assume you are using SkeletonGraphic and that you are using a CanvasGroup and reduce the Alpha value for the menu fade out effect. If you are doing this, you need to enable Canvas Group Compatible at the SkeletonGraphic's material. Please also be sure to use a SkeletonGraphic compatible material at the SkeletonGraphic component, as normal shaders like Spine/Skeleton cause problems (as described here). Note that it is not the normal material next to the SkeletonDataAsset that is shown in your screenshots. For SkeletonGraphic, common materials like SkeletonGraphicDefault are used on all skeletons, the atlas texture is assigned by each CanvasRenderer.

---

当使用 Spine/SkeletonGraphic 着色器(不是 SkeletonGraphic TintBlack)时,在启用 CanvasGroup Compatible 后,具有半透明颜色(alpha 值介于 0 和 1 之间)的附件会变暗。 如果您遇到此问题,您可以通过禁用 SkeletonGraphic 组件中的 Advanced - PMA Vertex Colors 来修复它。
-----
When using the Spine/SkeletonGraphic shader (not SkeletonGraphic TintBlack), after enabling CanvasGroup Compatible attachments that have a semi-transparent color (alpha value between 0 and 1) will turn darker. If you encounter this problem, you can fix it by disabling Advanced - PMA Vertex Colors at the SkeletonGraphic component.
Avatar utente
Harald

Harri
  • Messaggi: 4196

iyes

谢谢,我们再尝试一下
iyes
  • Messaggi: 6


Torna a 中国Spine用户