- Home /
Question by
BuoyantOtter · Jun 23, 2018 at 10:58 AM ·
cameralayersculling masklayer mask
Camera culling without layer mask
I have 3 cameras in the scene, and each of these cameras needs to "see" only objects under specific parent. I tried to use the Layer Mask approach, but it doesn't work for me since objects under that parent need to have their own Layer Masks for collision detection.
The way I would want it to work is this: I set the parents Layer Mask to "Only visible to Cam1", without applying this mask to all the children (potentially several hundreds of child objects) and Cam1 knows to also ignore all child objects despite them having a different Layer Mask. But unity doesn't seem to work this way, so what would be a solution to this?
Comment