Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
IT_USC's avatar
IT_USC
Honored Guest
9 years ago

OVRPlayerController/OVRCameraRig and Photon

Hello,

We are attempting to use the OVRPlayerController/OVRCameraRig and Photon however upon running the program the camera is hijacked by the host whenever a client joins the session. What can we do to fix this issue?

Thanks

2 Replies

Replies have been turned off for this discussion
  • IT_USC's avatar
    IT_USC
    Honored Guest
    It seems that moving the OVRManager to a Gameobject that isn't destroyed and then placing the OVRCameraRig in the scene is the answer. You will then disable the OVRCameraRig script and re-enable it on awake. You will need to find the OVRCaneraRig gameobject since it is in the scene though. 

    OVRCameraRig[] CameraRigs = GameObject.Find("OVRCameraRig").GetComponents<OVRCameraRig>();


  • Another method is to just have everyone's cameras disabled in the player prefab, then only enable for the local client