Author Topic: Faded sprite edge darker in player than in editor  (Read 3227 times)

ett.ufo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Faded sprite edge darker in player than in editor
« on: December 13, 2013, 11:32:34 AM »
This is probably a really stupid question so I apologize on before hand.

Why does the black faded edge (shadow like) of the TRIANGLE (a separate sprite above the round bg) get so much darker in the player.
It looks just fine in the Unity editor view.
It also looks fine as a texture on a quad.

My guess is that it has to do with the black background of the atlas.

But how do i fix it?

Thanks!
« Last Edit: December 13, 2013, 12:46:40 PM by ett.ufo »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Faded sprite edge darker in player than in editor
« Reply #1 on: December 13, 2013, 12:55:28 PM »
Which version is this in? Check the triangle count in the stats window. Is there a difference between play and edit mode? There was a bug in one of the earlier versions.. Early 3.0.6 or 3.0.5, I don't remember.

ett.ufo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Faded sprite edge darker in player than in editor
« Reply #2 on: December 13, 2013, 04:29:28 PM »
Which version is this in? Check the triangle count in the stats window. Is there a difference between play and edit mode? There was a bug in one of the earlier versions.. Early 3.0.6 or 3.0.5, I don't remember.

Ok, solved it.

It was my screwing up, but how I did it can be good for you to know.

I was trying to switch out old test graphics on a NGUI image button, and instead of switching the sprite in the container I only switched on the Background.
*
This has the effect of only showing the background sprite in the editor view but showing the sprite selected in the image button container during runtime. It is reproducible.
*
Without Murphys law I would of course have noticed this immediately, but in this case the test graphics was a version of the round background with the triangle baked in. So in the editor with only the new background without a triangle everything was looking fine. But in the player during runtime the old baked background was used resulting in a double triangle...
 :o

Thanks!
/ufot