Forum Discussion
Anonymous
9 years agoUnity Multiplayer - problem with cameras in Oculus VR
Hello, I need a small help with my Unity project. I am working on 3D VR first person cycling simulator, which is designed for use with Samsung Gear VR. I prepare multiplayer project based on Unity tutorial, and I have a problem with the cameras. Players are as prefabs, which includes standard Unity camera. When one player join the game, everything is OK, but when second player join game, the first player is seeing, what the second player see. I do not use external assets from Oculus, I only switched Virtual Reality Supported to Enable, and chose Oculus as VR SDK. Can anyone help me with this problem? Thanks for your tips.
I am using Unity 5.4.1.
2 Replies
Replies have been turned off for this discussion
- AnonymousSome details about project: I have prefab for player, that contains model of player and standard unity Camera. In Unity NetworkManager, I defined this prefab as Player Prefab in Spawn Info. Then I build server application for Windows. Then I build android version as a client. That is all I have done, But I have problem with stealing camera on client, when new player join the game.
- AnonymousWell, I used Oculus Utilities 1.12 and replaced camera in a player prefab with OVRCameraRig and naothing happened, If OVRcameraRig is a sibling of player prefab, is it necessary to disable OVRCameraRig if not local player in player controller script? I attached a player controller script which I use. Thanks for help, because I ran out of ideas how to solve this problem.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 2 years ago
- 2 years ago
- 1 year ago