Hello Guest

Author Topic: [Solved] Sprites turn into little rainbow rectangular  (Read 4024 times)

duketogo

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
[Solved] Sprites turn into little rainbow rectangular
« 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.
« Last Edit: August 13, 2017, 02:20:12 pm by duketogo »

duketogo

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Solved
« Reply #1 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [Solved] Sprites turn into little rainbow rectangular
« Reply #2 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.