Photon 2 Oculus Avatar Demo Issue

I need help in getting the https://doc.photonengine.com/en-us/pun/v2/demos-and-tutorials/oculusavatarsdk to run.

I am new to VR , frustrated getting the demo to run.

I followed the steps in the Demo,
1. Created PhotonAvatarView
2. Created the NetworkManager.
3. Moved the LocalAvatar and RemoteAvatar Prefabs to Assets/Resource Folder.
4. Add the PhotonView and PhotonAvatarView to the Avatars
5. Add PhotonAvatarView to the Observed Component of the PhotonAvatar.
6. Created an Empty GameObject in an empty scene, Renamed the GameObject to NetworkManager and added the NetworkManager Script to the Component.

I also added the AppId to Oculus Settings, Add UserID to the Local and Remote Avatars.

I put Debug.Log in all the functions in NetworkManager Script and change the Server Setting Log to full.

I do not think the NetworkManager script is being called or non of the methods in the script are called.

I will appreciate any help.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited December 2019
    Hi @OrangeZand,

    Thank you for choosing Photon!

    You need to connect and join a Photon room first.
    I saw the code you shared via email, so I suggest to add the missing piece like:
    public class NetworkManager : MonoBehaviourPunCallbacks, IOnEventCallback 
    {
        public void override OnConnectedToMaster() 
        {
               // Join or create a room here, e.g. call PhotonNetwork.JoinOrCreate etc.
        }
    
  • Hi Johntube,

    Thanks for reply.