Grey/Dark line between two cubes
I'm currently developing a mobile game and have encountered the following issue: I have multiple cubes aligned side by side programmatically. In Editor everything looks fine (see Screen 1): But on mobile (Android & iOS) it draws those grey/black lines between some of these cubes (see Screen 2): This only occurs if the camera is a bit away. If I zoom in they disappear on Android but remain on iOS.
I'm not using any texture like an image. Just a simple shader from the Assetstore: "Minimalist Free"
Hope someone can help me with this problem
It's shadow.
Android, IOS have different rendering from Window/Editor. That's why you see the line disappear when zoom in.
Try change Color Space to Linear in Player Settings/Others
Thanks for your answer! I've changed the Color Space to Linear but it didn't resolved the problem (still the same lines appear on mobile).
If you turn off auto light generation, maybe you forgot to rebuild lighting before build. Since unity might use previous light data that go along with scene.
Or increase camera rendering distance
Turning off auto light generation didn't solve it. Do you mean with increase camera rendering distance the far clipping plane? It uses the standard from cinemachine (pretty high) 5000 value. As the camera is only 30-100 units above the cube I think this should be already high enough?
Answer by unity_21erushbrook · Aug 20, 2018 at 04:11 AM
Sorry I don’t personally know, but I had the same issue. It’s weird and it could just be a problem within Unity.
Check all your editor and project settings to see if there is anything wrong.
Your answer
Follow this Question
Related Questions
Screen Space - Camera for Mobile (Android) not working 0 Answers
Is there a way to access mobile (android) wide angle camera in unity? 0 Answers
automatic screen resolution for Android? 1 Answer
Shader works in editor but not in Android - Pass 'meta' has no vertex shader 1 Answer
Black screen on Android build 14 Answers