2D Toolkit Forum

2D Toolkit => Support => Topic started by: duketogo on August 11, 2017, 11:03:50 am

Title: [Solved] Sprites turn into little rainbow rectangular
Post by: duketogo on August 11, 2017, 11:03:50 am
tk2d ver : 2.5.8.5
Unity ver : 2017 1.0f3

I'm making a prototype with tk2d.

I made 5 tk2dbuttons. The sprites in those are supposed to be changed with clicks.

But with about 2% of possibility, sprites turn into rainbow.

It doesn't happen everytime and I checked all sprites in SpriteCollection. Checked called sprite number from Debug.

SpriteCollection has no vacancy between any numbers.

So called number had the sprite but it didn't displayed.

(ADDED 12 AUG)

I tested it in Older Unity 5.6.0f3, 2D Toolkit 2.5.7

The same symptom occurs.
Title: Solved
Post by: duketogo on August 13, 2017, 02:19:31 pm
It did happen because of blank blocks of the original image file.

I deleted black blocks but sprite ID still existed.
Title: Re: [Solved] Sprites turn into little rainbow rectangular
Post by: unikronsoftware on August 14, 2017, 06:49:21 pm
Just to clarify what is going on -

Sprite ids are never deleted but they are reused. Until they are a small grid texture is used to identify it as a broken sprite collection - if a sprite still uses the id it appears as the grid texture to be obvious it needs to be fixed.