2D Toolkit Forum

2D Toolkit => Support => Topic started by: luniac on November 23, 2014, 06:43:27 pm

Title: Using PNG atlas format breaks collection
Post by: luniac on November 23, 2014, 06:43:27 pm
If I create a sprite and try to point to a sprite collection set to PNG format, I get a NULL error and a pink missing texture instead. What cases this?
Title: Re: Using PNG atlas format breaks collection
Post by: unikronsoftware on November 23, 2014, 09:23:28 pm
Not heard of this bug, please post a repro case for this and I'll investigate.
Title: Re: Using PNG atlas format breaks collection
Post by: luniac on November 27, 2014, 12:58:29 am
Sure,

All i did was,

1) create sprite collection
2) drag some textures in there and commit
3) change atlas format to png
4) create a sprite and select created collection and some sprite, it gives error.

I got screenshots:
capture 1 shows how the sprite looks like with the error(i havent been able to recreate the pink null texture)
capture 2 shows the error message when creating a new sprite using the broken collection
capture 3 shows the inspector view of the messed up sprite
capture 4 shows what gets created when setting atlas format to PNG
capture 5 shows the sprite collection settings
capture 6 shows the Unity texture format output which fixes everything