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
Bu mesaja eklenen dosyaları görüntülemek için gerekli yetkilere sahip değilsiniz.
liuweichicun
  • Mesajlar: 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
Kullanıcı avatarı
Misaki

Misaki
  • Mesajlar: 660

liuweichicun

Misaki yazdı: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 yazdı: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
  • Mesajlar: 3

Harald

liuweichicun yazdı: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?
Kullanıcı avatarı
Harald

Harri
  • Mesajlar: 4002

liuweichicun

Misaki yazdı: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 yazdı:
liuweichicun yazdı: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
  • Mesajlar: 3

Harald

Glad to hear you've figured it out, thanks for letting us know.
Kullanıcı avatarı
Harald

Harri
  • Mesajlar: 4002


Dön Unity