我假设您正在使用 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.