Unity 5 Issues

ads support indie game development:
Apr
13

Unity 5 Issues

UPDATE: A workaround for this issue has been found.

Untgrad Fail

I was excited to upgrade Super Slam Dunk Touchdown to Unity 5 for the profiling tool and the new audio mixer. The profiler seemed to work, though nothing jumped out at me as a performance problem. I couldn’t figure out how to link the audio mixer with newly created game objects. But the show-stopper is this issue:

layer 1 overlay

Look carefully at his hat and shoulder

I noticed something strange occasionally on my players, and it was difficult to reproduce. It seemed to change when the camera moved, depending on the window size and what frame of animation was playing. Finally I got it paused and removed the uniform color layer from the sprite.

base layer

base layer

This is the base layer, and the default colored uniform is in place. Why are we seeing pixels bleed through the uniform layer?

overlay pixel highlight

overlay pixel highlight

This is the heart of the issue. When sprites are scaled in Unity 5, even if they are positioned in the exact same place, and are the exact same size as my sprite layers are, they scale differently. Notice the highlighted square pixel on the left and the fatter pixel on the right of his hat. Now take a look at the base layer more carefully:

base layer pixel highlight

base layer pixel highlight

The left pixel is the fat one. Since there’s apparently nothing I can do about this, I’ll have to stick with the older version of Unity until this gets fixed. Here’s the same frame from Unity 4.6 with no such issues:

no pixel bleed

no pixel bleed


 

UPDATE!

To fix this issue, configure your sprites as you normally would then change the texture type to Advanced. Search through the options and look for “Mesh Type” and change it from “Tight” to “Full Rect” and you’ll be back to pre-Unity 5 sprite scaling.

 

 

About rick

Founder of Tipping Goat and creator of Super Slam Dunk Touchdown. On Twitter @TippingGoat

Leave a comment

*

Super Slam Dunk Touchdown

Categories