Forum Discussion
Archi16
5 years agoExplorer
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?
2 Replies
Replies have been turned off for this discussion
- MikeFTrusteeDo you have a valid quest app id via your backend, and is it assigned in the relevant places within your code?
- Archi16Explorer
MikeF said:
Do you have a valid quest app id via your backend, and is it assigned in the relevant places within your code?
If you mean App ID then yes. I have created application in Oculus Dashboard, copied ID into Oculus->Platform in Unity(also tried by setting it with script).
When im putting user id's in Local Avatar manually, it loads avatars correctly.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 4 months ago
- 2 months ago
- 10 months ago