Occlusion Portals Not Working in 5.5.0f3
In Unity 5.4.3, we had a working occlusion portal system in our game for doors, meaning that when you closed a door, stuff behind it was occluded, and when you opened, it was not. We simply had an empty GameObject in the hierarchy of the door prefab with the OcclusionPortal component, and depending on the door state, we set the open property.
Now in Unity 5.5.0f3, this does not work. The property still gets set, but the occlusion does not change. If I set the prop in editor and enter play mode, it works as expected. But changing the prop at runtime does nothing.
The patch notes for 5.5.0f3 state:
Graphics: Multi-Scene occlusion culling now works correctly. Culling data has been extracted to a separate Asset, and can be baked/reloaded with multi-Scene setups. Note that the data is stored relative to the active Scene, and is loaded correctly when loading any Scene or group of Scenes that reference it.
I don't feel like this should change anything in our case. I tried clearing and re-baking occlusion data several times, to no avail.
Any ideas?
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220612104127im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
What is wrong with my 2D portal code? 0 Answers
Rendering portal like in Portal 2 0 Answers
Scripting Portal 0 Answers
Weapon scope implemented using stencil portal, occlusion? 0 Answers
How to make VR Seamless Portals 0 Answers