Forum Discussion
Shavier
3 years agoProtege
Get the current user ID
Im trying to get the current user ID so I can share the spatial anchors, and I did this code:
var loggedUser = Oculus.Platform.Users.GetLoggedInUser();
textIP.text = loggedUser.ToString();
But somehow this gets an error and the user info does not display.
Is there another way to get the user id?
2 Replies
Replies have been turned off for this discussion
- qbanfromhtownHonored Guest
Well stop trying
- ChescoRedExplorer
_previousNameUserOculus = msg.GetUser().OculusID;https://docs.unity.com/authentication/en/manual/SettingupOculusSignin
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
- 6 months ago
- 7 months ago
- 3 years ago