06-12-2019 09:15 PM
08-22-2019 10:54 AM
//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