Weird rendering problems

I’m working on a 2d game and everything looks fine in the IDE. I have 2 cameras - one rendering the background and GUI Text, and the other rendering the sprites. I used 2 cameras so the sprites would always be on top of the GUI Text.

When I run the game on iPhone I get some strange problems. 1) The background isn’t showing up at all. 2) When I drag a sprite, it leaves trails like the first image isn’t being erased at all, 3) The position and size of the elements rendered by the background camera are much smaller than they are in the IDE.

These problems are likely due to some iPhone limitations that I’m unaware of or have overlooked. As I mentioned, everything looks correct in the IDE. Does anyone have any suggestions about what could be going wrong?

Thanks,

Brian

Try playing around with your cameras’ clear flags. You could try setting your GUIText and Background camera’s Clear Flags to Skybox or Solid Color. Also, have your Sprite camera’s Clear Flags to Depth Only.

That worked great.

Thanks,

Brian