Singe Posted June 19, 2019 Share Posted June 19, 2019 Hi there!I'm working in Unity, trying to implement the Stats & Achievements API inorder to set up an achievement that can be unlocked after doing a certain action 10 times. In order to do so, I've set up an Achievement, and a Stat, and in my code I incrementally call UserStats.SetStat() and UserStats.UploadStat() everytime the action is done, checking each time if we've reached the threshold and then calling SetAchievement() if so.The issue I'm having is that I can't seem to see the result of incrementing a Stat when it is set to "Hidden" visibility in the Viveport console. I try to get back the value back by calling GetStat() but it returns the value 0. On the other hand, if I set the Stat to Revealed (in the viveport console for the app), I can increment them just fine, and the same call to GetStat() afterwards returns the expected value. I've followed the outline here: https://developer.viveport.com/documents/sdk/en/api_stats.html as closely as possible in our implementation:1. I first call the top level Init(), do the license check, and then make the isReady() call.2. Before updating any achievement or stat, I call DownloadStats(), and then on the callback I first SetStat(), then UploadStat().Is this intend behavior? Or is there something else I should be doing before setting a value to a hidden stat?Thanks for your help. ( tags added by moderator) Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now