cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Meta Avatar2 load

weslleyijt
Honored Guest

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

 

weslleyijt_0-1662744547510.png

 

 

 

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

 

 

0 REPLIES 0