Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
fubenalvo's avatar
fubenalvo
Honored Guest
9 years ago

OVRProfile (username, userid, locale) alternatives? Unity

I want to make a highscore for my game. The problem is, how I cant find any working integration of the Oculus Profile.
I need a unique userid (oculus), a username and a locale info if posible.

It was possible before, as you can see it here:
https://developer3.oculus.com/doc/0.6.1.0-unity-legacy/class_o_v_r_profile.html

For me, the profile.userName and the others are obsolete. I checked the code, and it's just a skelleton now:

[System.Obsolete]
public string id { get { return "000abc123def"; } }
[System.Obsolete]
public string userName { get { return "Oculus User"; } }
[System.Obsolete]
public string locale { get { return "en_US"; } }

These methods just simply not exist:
profile.GetID();        //ex: 9dasfl454
profile.GetName(); //ex: brian.dewolff
profile.GetLocale(); //ex: en_US

So what is the actual way to get these informations?

2 Replies

Replies have been turned off for this discussion
  • Profile has has moved into the Platform SDK, so you'll need to get that integrated.  The Platform SDK also includes a leaderboards component, so if you wanted to you could build your high score system on that.  Here's the getting started guide: https://developer3.oculus.com/documentation/platform/latest/concepts/book-pgsg/