when second player connects the camera rotates randomly

Hello everyone,

I’m working on Multiuser Virtual Reality in Unity with using Unity Network Manager and gvr module.

My problem is:

When i run the game in android with only 1 player (host), everthing is fine. I can control the VR. However, when second player joins the room, i cannot control VR and The camera is rotating around the player randomly. However, when i exported for the PC and connect multiple users on PC there is not any problem at all.

Also i have a prefab which includes model and GvrMain on the top of it.

Can anybody help me?

You need to post some code related to the camera so we can diagnose it and not create duplicate posts in other forum sections.

I’m newbie in forum so im sorry about duplicating.

Anyway, i’m using the below code for camera. myCam and myAudioListener variables attached in my character prefab.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

public class AddGvr : NetworkBehaviour {
     public Camera myCam ;
     public AudioListener myAudioListener;

     // Use this for initialization
     void Start () {
             }

     // Update is called once per frame
     void Update () {


         if (isLocalPlayer) {
             if (myCam.enabled == false)
                 myCam.enabled = true;

             if (myAudioListener.enabled == false)
                 myAudioListener.enabled = true;
         }
     }
}