- Home /
Hide Things behind game objects?
How do you hide things behind game objects? After backing the Occlusion, only the things behind the camera are hidden, when I am in a room, everything behind the wall is active. Everything is marked as static. Even the water is not hidden, I look up its gone, I look down its active again even if the water is on the other side of the hill.
Answer by mikelortega · Apr 24, 2015 at 07:10 AM
Check if your camera has Occlusion Culling enabled.
Then in Scene edit mode, select your camera open the Occlusion panel and, if occlusion data is baked, you can visualize why are things still considered visible.
Once you visualize the results you can set Smallest Occluder, Smallest Hole, to something more appropriate for your scene.
I noticed that when I static the game objects the children were not static, usually it will ask for the children to be static also and I always press ok. Now I also static the children, works better now, but not perfect, when looking at the object behind the wall its gone, when I look to the left the object becomes visible again, even thou I can't see it. The water on the other hand still show when behind the wall. Water uses a lot of fps. Any hints on Water planes?
The object must be completely behind the occluder to be culled. I'm afraid your water plane is big and you can still see one corner of it, or maybe there's a hole in your occluder.
I added a big giant static cube under the water too see if it would show, and it still does.
Your answer
Follow this Question
Related Questions
how to toggle on/off a gameobject with a GUI button ? 3 Answers
hide and show node for turret places 1 Answer
Hide/Show a game object and activate/deactivate a script of another game object with one script 1 Answer
How to hide 3D text behind other game objects. 0 Answers
Deactivating the hiding of objects that are out of camera view 1 Answer