Author Topic: UISprite and UI2DSprite not getting along  (Read 6952 times)

Andresfdezb

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 23
    • View Profile
UISprite and UI2DSprite not getting along
« on: October 23, 2014, 05:58:23 AM »
Hi there,
I'm switching from using UISPrite elements to UI2DSprite elements because it is easier for me in the current project to store the references to the sprites rather than have the string names of the sprites inside the atlas (I have an info panel that changes some sprites depending on the info being shown).
Right now, while some elements are UISprites and some other are UI2DSprites, it seems that they don't work properly together, resulting in the UISprites being shown blurry while the UI2DSprites are being shown properly. Have I missed something? Is there a place where it states that they can't be used within the same UIRoot? Or is it just some configuration that I set wrong?
Thanks in advance.
« Last Edit: October 27, 2014, 02:43:54 AM by Andresfdezb »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UISprite and UI2DSprite not getting along
« Reply #1 on: October 23, 2014, 06:31:24 AM »
Maybe your atlas is set to be mipmapped or compressed? That would only affect the regular sprites, not the uGUI-like sprites.

Andresfdezb

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: UISprite and UI2DSprite not getting along
« Reply #2 on: October 23, 2014, 08:52:34 AM »
Maybe your atlas is set to be mipmapped or compressed? That would only affect the regular sprites, not the uGUI-like sprites.
The atlas is set to Truecolor and it hasn't changed at all ever since it was created. The atlas has the same settings as before I started using the UI2DSprite (I actually checked it several times to see if I had changed it). That's what puzzles me.

It only happens in the build (webplayer target) as in editor mode it doesn't happen. And I also keep the same settings for the build (not override).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISprite and UI2DSprite not getting along
« Reply #3 on: October 23, 2014, 03:40:30 PM »
Check quality settings. You likely have web player target set to Fastest or something similar that degrades texture quality.

Andresfdezb

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: UISprite and UI2DSprite not getting along
« Reply #4 on: October 27, 2014, 02:43:33 AM »
Check quality settings. You likely have web player target set to Fastest or something similar that degrades texture quality.

Thanks, that was it. I had checked the override options, but I didn't check the quality settings and every target was set to fastest (although I have no idea how that happened, lol  :o). Already changed it and everyting looks good now.

I thought this could be a NGUI issue instead of me being careless with Unity settings and that's why I posted here, sorry to bother you guys. Thanks for the help.