• RuntimesUnity
  • 特效导入Unity后显示出现问题


在unity动画中,出现了右侧的矩形。但是在spine里并没有。导出时勾选了 预乘alpha 选项,Unity中设置的是 PMA ,颜色空间 Gamma 。

Related Discussions
...

不幸的是,从屏幕截图中无法得知。 您能与我们分享一下您的导出资产吗? 您可以将其附加到论坛帖子中,或者向我们发送电子邮件至 contact@esotericsoftware.com,简要提及此论坛主题 URL,以便我们了解上下文。

Unfortunately it's impossible to say from the screenshot. Could you please share your exported assets with us? You can either attach it to a forum posting, or send us an email to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context.

18 days later

谢谢回复,已经解决了,素材制作的问题。目前还有一个问题,我想使用 skeletonGraphic 制作受击变白动画,就像案例中的那样。但是 UI 无法使用 MaterialPropertyBlock ,Spine这边有提供比新建一个 Material 更好的办法吗?

@p12pzn 很高兴听到您可以解决您的第一个问题,感谢您告诉我们。

关于“SkeletonGraphic”和“MaterialPropertyBlock”:不幸的是,我们也不知道与 Unity 的“CanvasRenderer”一起使用的“MaterialPropertyBlock”有什么好的替代方案。

不幸的是,我们在这里的 Unity API 非常有限,目前我们可以提供的最好的组件是 SkeletonGraphicCustomMaterials 组件(或通过代码使用 sculptureGraphic.CustomMaterialOverride),它允许您使用不同的材质覆盖骨架的默认材质。 材料。 这样您就可以使用一种可以激活和停用的白色覆盖材质,避免使用“canvasRenderer.GetMaterial()”和“canvasRenderer.SetMaterial()”。



Glad to hear you could resolve your first problem, thanks for letting us know.

Regarding SkeletonGraphic and MaterialPropertyBlock: Unfortunately we also don't know any good alternative to MaterialPropertyBlock to be used with Unity's CanvasRenderer.

Unfortunately we're quite limited with Unity's API here, the best that we can currently offer is the SkeletonGraphicCustomMaterials component (or using skeletonGraphic.CustomMaterialOverride via code), which allows you to override the default material of the skeleton with a different material. This way you could use one white override material which can be activated and deactivated, avoiding using canvasRenderer.GetMaterial() and canvasRenderer.SetMaterial().