Oculus Avatar Sdk for Unity
Hi. Im trying to figure out how Oculus Avatar SDK works.
For testing im using Oculus Quest.
The problem is - I cant get user ID, which i need to load his/her own avatar of Oculus account.
Here is part of code:
Oculus.Platform.Users.GetLoggedInUser().OnComplete(OnGetLoggedIdUser);
For testing im using Oculus Quest.
The problem is - I cant get user ID, which i need to load his/her own avatar of Oculus account.
Here is part of code:
Oculus.Platform.Users.GetLoggedInUser().OnComplete(OnGetLoggedIdUser);
private void OnGetLoggedIdUser(Message<User> message)
{
if (!message.IsError)
{
Debug.Log("========ID of User========"+message.Data.ID.ToString());
}
}
But message has error, which says "The user isn't signed in or their account state wasn't in a recoverable state."
What i should do to fix this?
But message has error, which says "The user isn't signed in or their account state wasn't in a recoverable state."
What i should do to fix this?
