Skip to main content
New Participant
January 23, 2017

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?
    This topic has been closed for replies.

    2 replies

    New Participant
    February 3, 2017
    Same question.
    Participant
    February 3, 2017
    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/