Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Third Party SteamVR Camera issues with Mirror multiplayer

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

  1. rgd1998

    rgd1998

    Joined:
    Jul 25, 2022
    Posts:
    3
    Hello,

    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?