• RuntimesUnity
  • Rendering issue on Unity 2022.3.9f1 with Spine 4.1

I tried exporting the Spine file in Bleed mode and importing it into Unity.
The Unity version is 2022.3.9f1, and I'm using the Spine 4.1 package.
Following the official documentation, I checked the sRGB and Alpha is Transparency options on atlas, and also Straight Alpha Texture option on material.
However, when rendering in UI mode (SkeletonGraphic), there are display issues, but seems to be normal with SkeletonAnimation.

I've already tried changing the AtlasTextureSettings and Material settings in Preferences to StraightAlpha versions.
And also attempted to modify the Material in DefaultBleedSetting, but it still didn't work.

  • Harald ответили на это сообщение.
    Related Discussions
    ...

    reiji However, when rendering in UI mode (SkeletonGraphic), there are display issues, but seems to be normal with SkeletonAnimation.

    Did you perhaps change the Material in the assets folder next to your skeleton (which can't be used by SkeletonGraphic), instead of assigning a straight alpha Material at the SkeletonGraphic component? If so, please note that SkeletonGraphic works differently than SkeletonAnimation, using a CanvasRenderer instead of MeshRenderer. You need to assign a Material with a SkeletonGraphic compatible shader (see the documentation here), which only provides the material parameters but has no texture assigned (which will be assigned by the component automatically).

    So if you want to have all SkeletonGraphic components use Straight Alpha workflow, you might want to modify the SkeletonGraphicDefault material accordingly (and enable Straight Alpha Texture). You can check out the Spine Examples/Getting Started/6 SkeletonGraphic example scene to see this material in action at both skeletons.

    Thanks for your reply.
    By assigning new custom material that using SkeletonGraphic shader and with Straight Alpha Texture checked, it looks fine so far.

    @reiji Glad to hear, thanks for getting back to us.