6
\$\begingroup\$

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

\$\endgroup\$

3 Answers 3

5
\$\begingroup\$

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

\$\endgroup\$
5
  • \$\begingroup\$ So we should move everything closer to the camera? \$\endgroup\$ Feb 17, 2016 at 21:44
  • \$\begingroup\$ Can you show me a screenshot of the swordguy gameobject inspector properties? I imagine you are using an orthographic camera? And yeah, the issue for me, was that the Canvas component was too far away from the camera. \$\endgroup\$
    – jgallant
    Feb 17, 2016 at 21:45
  • 1
    \$\begingroup\$ We changed the z axis and it fixed the problem. Thanks! \$\endgroup\$ Feb 18, 2016 at 13:28
  • 1
    \$\begingroup\$ Glad you solved your problem. Feel free to send me consultation money. :) \$\endgroup\$
    – jgallant
    Feb 18, 2016 at 13:30
  • \$\begingroup\$ Maybe reducing your camera far plane will do the trick \$\endgroup\$
    – Crazyrems
    Feb 24, 2016 at 8:54
1
\$\begingroup\$

I had this painful clueless issue before. But I did resolve it. Probably your camera is at z:-10 and everything other is at z:0. Try to bring camera closer to object like set camera's Z to -1.

\$\endgroup\$
0
1
\$\begingroup\$

don't keep your background and your image in the same position . keep them far away from each other .

\$\endgroup\$
1
  • \$\begingroup\$ Your answer doesn't provide any new information; there's already an accepted answer provides the same information with a more precise explanation & solution. \$\endgroup\$
    – Pikalek
    Sep 29, 2017 at 15:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .