Invisible wall outside the interior

hi guys,

I try to do like the link above. When I navigate, the wall becomes invisible if it covers the interior, and when I move to the other side the wall becomes visible again. I don’t know how to do this in unreal engine.

Any help or suggestions on how to get this effect would be greatly appreciated. sorry for my bad english. Thank you!