Some sprites become invisible in a build

Dear Community,

I’d like to ask for your help. After creating a build for Windows and running it, I noticed it actually differs from the game in the editor’s play mode. Sprites with the “Package” and “Customer” tags are visible in the in-editor play mode, but they become transparent in the final executable. They are still there, however, as the car changes its color upon interacting with them.

What could be the reason and how could I fix that?

Windows Build

Unity Editor

Hi,

It might be that you are experiencing the infamous z-fighting effect. Look it up on Wikipedia to learn more about it.

Fortunately, there is a simple fix: Set the position of the background game objects (street, grass) to z = 10. The foreground elements should be set to z = 0, and the camera to z = -10.

Did this help you solve the problem?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms