• Unity
  • Unity Sprite Atlas Support

Related Discussions
...
  • Modificato

Hi!

Don't worry - it was just on-hold for some time in favor of important bugfixes and SpriteMask support, but will be picked up again rather soon. We are aiming to support the Unity feature set as much as possible, and development of SpriteMask support has just been completed - see this forum post here: SpriteMask support for all included shaders.

I will get back to you as soon as we are making some progress on the Sprite Atlas support.

Glad to hear it :party: . Thanks for the reply.

You're welcome! 🙂

3 mesi dopo

Is there any timeline you could give to us? Ships in Q2 or Q3?

I'm sorry that this feature has been delayed just before getting started, the Unity 2019 release caused some high-priority tasks to be inserted. Q3 should be reasonable.

4 mesi dopo

sorry to dig this up, gonna add some of my own observations.

i've gotten a customizable character working with spine, and the sprites are coming from SpriteAtlas and SpriteAtlas variants alright.

I've noticed a bug where spine isn't honoring the scale setting of the SpriteAtlas variant (was trying to make a low-res texture set for zoomed out views). it looks like spine is just grabbing the same coordinates from the atlas in absolute coordinates instead of some relative coordinate space like UVs. For example, where it should be grabbing one hand graphic, there's actually 4 hands, as if it's copying the original unscaled hand's pixels from the now-shrunk-atlas and accidentally grabbing nearby sprites

Presumably i need to tweak ToAtlasRegion to return the adjusted region?

Which version of the spine-unity runtime are you using? We have rather recently fixed a bug where texture's Max Size platform settings were ignored when regions were being extracted.

5 mesi dopo

Sorry to bring this up from the dead, I just didn't see a confirmation or not.

Has this support been added yet?

Oh boy, that issue slipped through since it had no assignee. We are just starting implementation right now. Thanks for posting and sorry for the super long delay!

No worries! Thanks for still implimenting it!

Unfortunately it doesn't seem this works quite yet with normal maps as it really only seems to work with sprites.

The devs suggesting something along the lines of allowing paired atlases packing to enable this feature but...that was years ago.

In the meantime I wrote my own auto packer using unity's texture packing and my own AtlasRegion text file exporter. Their packing isn't the best but it'll do for now until I get around to writing my own or unity enables the features I needed for sprite atlas.

Would seriously be cool to use sprite atlas tho. Thank you so much!

3 mesi dopo

Finally good news after a long time and opening a can of worms (accessing the SpriteAtlas' texture and regions turned out to not be easily supported by the Unity Editor scripting API :wounded: ):

Support for Unity's Sprite Atlas has finally arrived, a new 3.8 unitypackage can be downloaded here as usual:
Spine Unity Download

Import is supported via a new Spine SpriteAtlas Import tool window.
Please find the full documentation here:
spine-unity Runtime Documentation: Advanced Using Unity SpriteAtlas as Atlas Provider

Again, sorry for the long delay, hope you like it! 8)