In unreal engine 5, is there a way to automatically set visibility of a selected group of objects or an individual object, if there’s say, trees in the camera path or camera frustum. It would set the objects visibility to “false” (effectively making it invisible to the camera) prior to the camera rendering the objects in the scene.
No but there are many ways to do it.
The easiest one is to make a foliage/tree material that is crafted to do this on purpose.
Another option would be stencils and a PostProcess material.
and there are tons of tutorials on how to go about it - one worse than the other, but they give you ideas at least.
Trying to source a link…