Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Unity Multiplayer SteamVR Camera issues with Mirror multiplayer

Discussion in 'Multiplayer' started by rgd1998, Jul 28, 2022.

  1. rgd1998


    Jul 25, 2022

    I am using Mirror Plugin with a multiplayer VR game. I use the NetworkManager to spawn a player prefab when someone joins the game.

    My problem is that when one person joins the game, the vr's camera is their own. But when a second person joins, both players' camera becomes the second person's.

    I've seen some other related issues, but their issues don't use SteamVR Plugin, and everyone's suggestion is to remove the camera in the prefab and use 'isLocalPlayer' code to control the generation of the camera, but my VR game uses SteamVR's [CameraRig], which contains a camera for displaying in VR glasses I don't think I can remove this camera from my prefab.

    How can I fix it?