- 編集済み
Building A Collectible Card?
Hi everyone! My Dev Team is working on a game where each character has their own collectible card. It has two sides, and the user can flip it from side to side. When I went to build it in spine the first time, I tried to optimize the file by cutting up the image so I could fit it on a smaller texture atlas. It is a pretty big image. However even though the image looked seamless in Spine, when we exported to Unity you could see all the edges. Pictured below in Unity:
So then I tried building both sides without cutting any of the layers. It makes two big texture atlases, but no errors on my end on export. Spine view and texture images below:
https://sta.sh/02dpcgics73y
https://sta.sh/09tog5h0red
But when we import to Unity it goes a bit haywire.
And we get this error message:
Material with texture name "KamiCard2" not found for atlas asset: KamiCard_Atlas
I checked to make sure all animations and keys were correctly set, and all images had the right visibility default settings. Any help into what may be the trouble would be greatly appreciated. Apologies for not being able to include the images in the post. For some reason they wouldn't show up, only broken image icons. Thanks so much to anyone that can help. :heart:
Hi!
However even though the image looked seamless in Spine, when we exported to Unity you could see all the edges.
This looks like it could be caused by exporting with Premultiply alpha
on, but not rendering with Premulitply alpha enabled in Unity.
Please see: Premultiplied Alpha Guide
This also looks related: black stroke in images when importing into unity
I can't see what is going on in the last screenshot, but there is clearly something wrong with the export or import. I believe this is more related to Unity, so I've moved the thread there. Harri should be able to help you out better with Unity questions, but maybe you can try enabling PMA in Unity with the first smaller texture atlas you made, and see if that solves your problem.
Hello Shiu! We'll look into the PMA for the smaller texture atlas first. Thanks so much for the help.
If the problem persists, you can send us a zipped package of your exported files to contact@esotericsoftware.com, if possible also include the .spine
project file and the respective input images.
Thanks so much. We are probably testing tonight or tomorrow. I will let everyone know how it works out.