culling objects for left-right cameras, in Unity 5.2 with VR enabled
I would like to cull game objects based on if the left or right camera is rendering the scene in Unity 5.2 for virtual reality applications. I understand the preferred way to support VR is by changing the Player Settings since version 5.1, and not using platform specific prefabs, e.g. Oculus or Cardboard.
How can I cull objects so that the left eye does not see something intended for only the right eye, and visa versa?
I want to support Cardboard, Rift, and other stereo displays.
I am expecting the answer will be something along the lines of, attach some C# to objects that must detect which VR Node is used as the current camera, and hide/show the object based on the VR Node. Being a Unity noob, I could be way off.
Your answer
![](https://koobas.hobune.stream/wayback/20220612045617im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[VRDevice] Initialization of device oculus failed. 0 Answers
Unity XR Interaction Manager Bug? 1 Answer
Using the Oculus CV1 Remote 0 Answers
How to set up oculus rift in unity 3d? I really need help.. 0 Answers
Can we manually set a rotation and a position for the XR rig / VR Headset Oculus Rift ? 0 Answers