cancel
Showing results for 
Search instead for 
Did you mean: 

Personalized RemoteAvatar

d0raem0n231
Explorer
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. 
1 REPLY 1

MassiveState
Protege
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