- Home /
Exclude layer from culling
I have a very large mesh that I want to be visible all the time. Meaning when the gameobject itself goes out of view I don't want it to not render the mesh because I can still see it. The problem is that the camera turns of the mesh when the gameobject point goes out of view. I've tried excluding it from the Culling Mask but it does the opposite and hides it all the time. How can I do this?
In the top right of the inspector you have layers, have you tried that? Just an idea, no experience with it yet.
Answer by Dreamora · Aug 08, 2011 at 03:13 AM
You can not control culling into the "force negative" direction. That means if the culling decides that something needs to be culled (out of camera view, or if you use occlusion culling by an occluder) it will be no matter what you do.
But normally that should not disturb anything as you wouldn't have seen it anyway.
Question is how were you able to achieve your problem? Did you by error use Umbra and mark objects static that have transparent / cutout / vegetation shaders on? (or mark a terrain with trees and bushes static which is the same)? If so don't mark them static cause transparent objects must not be used as occluder, the transparent is being ignored for occlusion generation.
if its about animated objects that hide: there you don't need culling modification, what you need is to go down in the mesh hierarchy and change the importer settings to "update when offscreen" :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612165827im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is there any way to hide only part of an object from the camera? (unity free) 2 Answers
Shadows from culled objects 0 Answers
Camera is culling terrain detail objects regardless of settings 6 Answers
How to make camera position relative to a specific target. 1 Answer
Dynamically instantiated game objects not showing in main camera (with background camera) 3 Answers