• Unity
  • Texture Packer Settings for Spine-Unity

  • تم التحرير
Related Discussions
...
10 أشهر لاحقا


Regions
If you are using Spine Professional and using meshes, we recommend leaving Strip Whitespace OFF.
Whitespace stripping causes problems with mesh UV coordinates.
The best practice is to pre-trim your images before starting to set up your skeleton in Spine.

Pages
Power of two and Square used to be requirements when you have PVRTC compressed images and intend to target iOS.
It's not clear if this is still the case, but by default, Spine-Unity will set your image settings to uncompressed (this means uncompressed at runtime) on import so it comes out clean.

Output
For beginners, and quick testing, leave Premultiply Alpha on. This is compatible with the bundled default Spine/Skeleton shader. This also allows it to be compatible with per-slot additive blending.

If you want to use Sprites/Default or Sprites/Diffuse, leave Premultiply Alpha unchecked and Bleed checked.

If you are using specialized shaders, you should know if it uses Straight alpha or Premultiplied alpha blending and check or uncheck this box accordingly. If you turn Premultiply Alpha off, you probably want to check Bleed.

If you plan to implement custom shaders, using Straight Alpha (Premultiply Alpha off) will likely make them easier to implement.

For more info, check this thread: Premultiply Alpha

Options
Unity does not recognize custom file types even if they are plain text, so we recommend setting the extension to .atlas.txt.
For the most part, The Spine-Unity importer will detect .atlas files and automatically rename them to .atlas.txt for you. But to save it a step and prevent any mixups when updating assets, set the Atlas extension specifically to this.

Thank you for this, Pharan. That part about shaders will come in handy.

My only remaining doubt is if leaving Power of Two and Square deactivated is beneficial for something (?).

I always imagined that the problem with whitespace stripping when using meshes was a temporary "bug", since the feature is incredibly handy. Are there no plans to make it work?

Great, thanks!