- Home /
Don't render objects behind other objects, or use transparency flags? (Like Source engine)
My game has barely any transparent textures, and I need good performance because I build on Android.
Is there any way to give objects flags that define wether objects behind them should be rendered or not?
The Source Engine works that way. I was playing with the console and found commands to hide all non-transparent objects. When I did this, most props like barrels or crates disappeared. Can I somehow do that in Unity?
EDIT: Does the "cutout" render mode work this way?
Answer by HarshadK · Jun 01, 2016 at 07:40 AM
What you need is Occlusion Culling.
Thanks!!
Didn't expect it's that easy. English is not my native language so "Occlusion Culling" were just two random words for me.
Your answer
![](https://koobas.hobune.stream/wayback/20220612082038im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
can see inside object that is supposed to be fully opaque 0 Answers
How to hide elements behind a transparent panel 0 Answers
Fade object transparency evenly from the edge inward 0 Answers
Unity System Fog Access 0 Answers
Android textures not showing properly 0 Answers