Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Shavier's avatar
Shavier
Protege
3 years ago

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?