- Home /
URP camera changing Clear Flags to solid color when I build apk for android
I have 2 cameras for the game view. Line camera only has LineRenderer layer culling mask activated. Main camera has every other layer activated except the LineRenderer layer. Everything is fine at unity play mode but when I try to build apk for android weird thing happens.!
It shows Line camera's background color on top of the game view. The project is in URP. I tried putting Line camera inside of a different GameObject. Changing priority of Line camera to make it lower than Main Camera doesn't help it makes LineRenderer layer invisible. Transparency of Line camera background color is already at 0. Tried using this piece of code
//Change Line camera's clear flags to don't clear lineCamera.GetComponent<Camera>().clearFlags = CameraClearFlags.Nothing;
again it does work on PC but not on android. How can i fix this problem ?
Your answer
![](https://koobas.hobune.stream/wayback/20220613051137im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
HDRP build error? Unity 2018.3.0f2, purple textures and VFX won't render 0 Answers
OpenGL Rendering Modes / Using a Color Mask 2 Answers
Offset the result of camera scissor rect 0 Answers
Part of mesh disappears on certain rotation angles in first person. 2 Answers
LineRenderer missing in build 1 Answer