- Home /
Camera with Depth Only Clear Flags does not work on Mobile Devices
I have a camera which has a culling mask that only includes one layer (the layer of a 3D creature model). The clear flags are set to depth only. (the camera has a higher depth than the main camera so it draws on top) In the editor this works perfectly, and it draws the creature on top of the main camera. However on every android device I've tested, and on Iphone (interestingly not IPad) the depth only clear flags do not work properly and it draws a black square around the creature, instead of transparency around the creature.
I'm really hoping to find a solution for this that works across most if not all mobile devices as the project deadline draws near and this is one of the last remaining bugs.
Thanks so much, Curtis
Here are screenshots showing what is happening between the editor and an android device: https://imgur.com/a/iW24z
Edit: I should also note that I've tried using solid color (with no alpha on the color) and Don't Clear as clear flags, and got the same result.
Your answer
![](https://koobas.hobune.stream/wayback/20220612151310im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Mobile device as second screen 2 Answers
How to apply image effects or filters to the device camera 0 Answers
transparent shader objects disappear on certain camera angles 6 Answers
DrawProcedural() in OnPostRender() drawing over transparent objects 1 Answer
How to do animated information panels 0 Answers