Facepunch.Steamworks Wiki

Achievement Unlocked

void Awake() { // // Tell Steamworks to call this function when something happens // Steamworks.SteamUserStats.OnAchievementProgress += AchievementChanged; } private void AchievementChanged( Steamworks.Data.Achievement ach, int currentProgress, int progress ) { if ( ach.State ) { Debug.Log( $"{ach.Name} WAS UNLOCKED!" ); } }