Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

RequestCurrentStats needs to be call on Steamworks.net to use achievements?

Discussion in 'Scripting' started by FalconHun, Mar 7, 2022.

  1. FalconHun

    FalconHun

    Joined:
    Feb 4, 2019
    Posts:
    3
    Hi all,

    The Steamworks API documentation says that before you would call any of the achievement-related methods you first need to call the RequestCurrentStats method.
    https://partner.steamgames.com/doc/api/ISteamUserStats

    What is weird is that I did not find any steamworks achievement tutorials on youtube that would mention it. Also, I am able to use the SetAchievement and GetAchievement and even the GetStat and SetStat are working without the RequestCurrentStats call.
    I am using Steamworks.net, by the way.

    So I am just wondering why the documentation says to call it. Are there some special cases where the achievements would not work without the RequestCurrentStats call?
     
    fusionbolt18 likes this.
  2. fusionbolt18

    fusionbolt18

    Joined:
    Jul 1, 2021
    Posts:
    1
    I am also wondering the same thing. Should I be calling it every time i want set/get an achievement/stat? Also using Steamworks.NET