• RuntimesUnity
  • spine导入unity混合模式不生效

Spine中的设置的图片混合模式(相加,相乘,滤色)在unity里没有效果,应该怎么做?

我们使用Untiy2021.3.4,URP项目。使用Spine是4.1。Spine在URP项目里需要 🇦 特殊处理吗?
谢谢!

Related Discussions
...

我们无法重现这个问题。 生成的混合模式材质在我们这边的任一渲染管道上都按预期工作,无论是使用前向渲染器的 URP、使用 2D 渲染器的 URP 还是使用标准渲染管道时。

哪个版本的 spin-unity 运行时(unitypackage 的名称,也在 Assets/Spine/version.txt 中列出)以及哪个版本的 Spine URP Shaders UPM 包(也是 Unity 包管理器中的包或版本的名称) 窗口)你在使用吗? 如果您没有看到使用例如的材料 使用的着色器“Spine/Blend Modes/Skeleton PMA Additive”,那么您可能使用的是旧的 spin-unity 版本,其中的内容不会自动设置。



We could not reproduce this issue. The generated blend mode materials are working as expected on our side for either render pipeline, be it URP using a ForwardRenderer, URP using 2D Renderer or when using the Standard Render Pipeline.

Which version of the spine-unity runtime (name of the unitypackage, also listed in Assets/Spine/version.txt) and which version of the Spine URP Shaders UPM package (also name of the package or version in the Unity Package Manager window) are you using? If you don't see materials using e.g. the shader Spine/Blend Modes/Skeleton PMA Additive used, then likely you're using an old spine-unity version where things were not automatically setup.

  • ygyl a répondu à ça.

    Harald
    使用Blend Modes中的材质球后有效果,但是对角色整体进行了变化,没有按spine中的部分组件图片变化

    如果您在骨架上只看到单一材质,则不应更改着色器。 它应该自动为每种混合模式生成一种材质,并已分配合适的着色器。
    You should not change the shader if you only see a single material at your skeleton. It should automatically generate one material for each blend mode, with the suitable shaders assigned already.