Skip to main content
New Participant
September 9, 2022

Problem with Meta Avatar2 load

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();
    }