Synchronize SteamVR CameraRig with GameObject
Hi,
We are trying to synchronize the SteamVR CameraRig with a GameObject. We want to assign a personage to the VR player so that the player is visible to other players when playing multiplayer. We tried using our own controls via a script applied to the GameObject but this only moves the GameObject and not the CameraRig.
How can we achieve this?
We use Photon PUN2 for multiplayer and SteamVR for the VR. We use Unity 2019.3.13f1
Answer by GetLitGames · May 19, 2020 at 08:26 AM
You are doing it backwards - first, go back to working controls without worrying about networking.
Once you have everything working properly again, create an empty gameobject and set it up to be networked in PUN.
Then have code on the new gameobject to keep it in sync with your rig.
I'm also assuming you are familiar with building VR games, and already know that your rig doesn't move very much in world space - you are supposed to have controls that move your "Player" through the world, like targeting the ground and clicking the trigger to teleport.
There could also be something else you are missing, if you are new to PUN - I don't know.
Your answer
![](https://koobas.hobune.stream/wayback/20220612234709im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiplayer 2 Answers
Targetting VR and flatscreen 0 Answers
Movement Script Affecting Other Player's Movement 1 Answer
i need help with my scipt ( photon mobile)!!!!! 0 Answers
VR Vive Tracker barely moving 1 Answer