Saturday, May 14, 2016

c# - Unity 2D graphical glitch cuts sprite diagonally


While making a game in unity, we found a graphical glitch that only happens on one of our mobile devices (a htc) where the screen will be oddly sliced by a triangle as shown in this image; Character on the left of the screen is halved


I've searched online but found no problem. We're using unity 2D, it only does it on the HTC but we have no idea why. The background is a 3D quad with a texture wrapped around it (so we can make it move with the character when the character is running, without having one large background). Any help would be greatly appreciated. Thanks



Answer



This is a camera culling issue. Had the exact same thing happen to me. More than likely, you need to adjust the Canvas that character is on, so that it is closer to the z-index range of your Camera.


enter image description here


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...