Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Personalized RemoteAvatar

Using the Photon Network, I want to get the userID of Oculus so that Customized Avatars can meet. 
The LocalAvatar is well implemented, but the RemoteAvatar coming into the room should not be personalized. 
Is there no way? I would appreciate it if you could give me a little clue. Thank you. 

Comments

  • MassiveStateMassiveState Posts: 40 Oculus Start Member
    Not sure if this helps as I'm not getting personalized avatars yet but I implemented the code from Oculus Documentation:

    In my PhotonAvatarView.cs script
     //Get Oculus User ID (I put this in the start function)
     Core.Initialize();
     Users.GetLoggedInUser().OnComplete(GetLoggedInUserCallback);
     Request.RunCallbacks();  //avoids race condition with OvrAvatar.cs Start().
    
    
     //Assigns user ID to OVRAvatar
        private void GetLoggedInUserCallback(Message<User> message)
        {
            if (!message.IsError)
            {
                OvrAvatar[] avatars = FindObjectsOfType(typeof(OvrAvatar)) as OvrAvatar[];
                foreach (OvrAvatar avatar in avatars)
                {
                    this.GetComponent<OvrAvatar>().oculusUserID = message.Data.ID.ToString();
                }
            }
        }
    
    I'm still getting grey hands on my instantiated localAvatar so I doubt this is working, would love to solve this problem with you @d0raem0n231

Sign In or Register to comment.