09-09-2022 10:30 AM
I'm trying to load the avatar using the user id provide by oculus account but I'm having a problem because the log gives me 'failed' I set the app id information on the dashboard and unity
these are the log states
IEnumerator TryToLoadUser()
{
OvrAvatarEntitlement.ResendAccessToken();
//We wait until the oculusID is set and the app token has been set
while (!userIDSet || !OvrAvatarEntitlement.AccessTokenIsValid)
{
Debug.Log(OvrAvatarEntitlement.AccessTokenIsValid);
yield return null;
}
var hasAvatarRequest = OvrAvatarManager.Instance.UserHasAvatarAsync(_userId);
while (hasAvatarRequest.IsCompleted == false)
{
yield return null;
}
//avatar oculos method
LoadUser();
}