liuweichicun

My spine version is 4.0.62

When I drag exported objects to Unity, I find texture have error about alpha.

This is spine exported texture open with Photoshop.
textureInPS.png


This is spine exported texture show in Unity Inspector.
spineExprotTexture.png


This is spine animation in Unity.
spineAnimationInUnity.png


This is Spine Texture packge Setting.
spineExport.jpg


by the way, I can't active Spine material Straight Alpha Texture field in Unity, because it can't work on Mobile devices.(I only test in Android.)

This is Spine raw project.
SpineProject.rar
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
liuweichicun
  • Postovi: 3

Misaki

You are exporting your textures as straight alpha, but it seems that you have not adjusted your import settings to straight alpha in Unity. Please see the following section of the spine-unity runtime documentation:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import
Avatar
Misaki

Misaki
  • Postovi: 768

liuweichicun

Misaki je napisao/la:You are exporting your textures as straight alpha, but it seems that you have not adjusted your import settings to straight alpha in Unity. Please see the following section of the spine-unity runtime documentation:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import
I try it,but it only work on PC, can't work on mobile device(for now, I just test on Android.)

---

Misaki je napisao/la:You are exporting your textures as straight alpha, but it seems that you have not adjusted your import settings to straight alpha in Unity. Please see the following section of the spine-unity runtime documentation:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import
I think I miss some important settings in spine that can make exported texture alpha channel is clean.
liuweichicun
  • Postovi: 3

Harald

liuweichicun je napisao/la:by the way, I can't active Spine material Straight Alpha Texture field in Unity, because it can't work on Mobile devices.(I only test in Android.)
Why are you exporting as straight alpha but using it without Straight Alpha Texture enabled? Applying the wrong import settings in Unity will make your atlas look incorrect.

Why can't you enable the Straight Alpha Texture field Material property in Unity for Mobile? What problem did you encounter when you enabled it?
Avatar
Harald

Harri
  • Postovi: 4101

liuweichicun

Misaki je napisao/la:You are exporting your textures as straight alpha, but it seems that you have not adjusted your import settings to straight alpha in Unity. Please see the following section of the spine-unity runtime documentation:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import
Thanks

---

Harald je napisao/la:
liuweichicun je napisao/la:by the way, I can't active Spine material Straight Alpha Texture field in Unity, because it can't work on Mobile devices.(I only test in Android.)
Why are you exporting as straight alpha but using it without Straight Alpha Texture enabled? Applying the wrong import settings in Unity will make your atlas look incorrect.

Why can't you enable the Straight Alpha Texture field Material property in Unity for Mobile? What problem did you encounter when you enabled it?
I should read documentation seriously. The problem is sovled.
liuweichicun
  • Postovi: 3

Harald

Glad to hear you've figured it out, thanks for letting us know.
Avatar
Harald

Harri
  • Postovi: 4101


Natrag na Unity