this always returns 0
SteamUserStats.GetStat(stateName, out tmp);
Code to set and store
SteamUserStats.SetStat(stateName, value);
SteamUserStats.StoreStats();
it is for progress Achievements like do 10x…
GameInstance.Instance.achievementManager.UnlockAchievement(AchievmentType.FirstAccomodation);
var value = GameInstance.Instance.achievementManager.GetStat("TwentyAccomodation ");
value += 1;
GameInstance.Instance.achievementManager.SetStat("TwentyAccomodation ", value);
if (value >= 20)
GameInstance.Instance.achievementManager.UnlockAchievement(AchievmentType.TwentyAccomodation);
Strangely enough it is working for 1 achievement that was already unlocked, that returns the correct amount, but all others are stuck on 0
i can only test in editor since VS doesn’t want to break if i attach it to a debug build running in steam.