我刚开始使用spine-unity,这个问题困扰了我大概三周了。
我将spine文件导出为json,产生了.png/,json/.atlas.txt,这三个文件。
把他们拖入unity之后(已经检查并安装了正确的spine-unity插件),会产生如下6个文件
当我把Skeleton Data Asset文件拖进scene窗口,选择skeletonAnimation后
并没有如我在教程视频中看到的那样出现我的动画文件,而是只有一个灰色的圆点
同时在console窗口有如下报错
Problematic material setup at Spine GameObject (door):
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
在inspector窗口有如下报错
但是即便我按照错误提示在spine导出时不勾选预乘Alpha,或者更换色彩空间至伽马色彩空间,也都无法解决这个问题
这个问题真的非常困扰我,我搜索了很多答案都无法解决,想问一下有没有什么办法