Author Topic: Non vanishing sprites in UIDraggablePanel  (Read 2028 times)

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Non vanishing sprites in UIDraggablePanel
« on: June 03, 2012, 11:40:06 PM »
Ok, seem to be having some problems getting this to work.

I started off by dragging the contents of Example 7 into my project and then changing all the settings so it fit on my screen. Everything working as expected up till now. However when I change the horned helmets to another sprite in a different atlas, those sprites always shop up on screen.

Can't seem to figure out why, after all, all I have done is simply change the atlas on an exciting sprite.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Non vanishing sprites in UIDraggablePanel
« Reply #1 on: June 04, 2012, 04:39:52 AM »
Make sure they don't make their own panel, then it won't clip.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Non vanishing sprites in UIDraggablePanel
« Reply #2 on: June 04, 2012, 05:11:53 AM »
Gaaah, I finally cracked it. Been stuck on this most the day. In the end it was the shader that was equipped in the atlas texture settings. So there was no transparency being applied. I did try changing it earlier but I forgot that I needed to press CTRL+S to save changes as Unity doesn't seem to do it automatically. I created a new atlas from scratch and that worked. So it gave me some clues as to where the problem might be. Well I have cracked it now, WATCH OUT FOR SHADERS! Is my advice :)