Skip to main content
New Participant
October 18, 2017

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
This topic has been closed for replies.

2 replies

ITUSCAuthor
New Participant
October 18, 2017
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>();


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