Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17925

SteamworksAPI achievements only appear after game close, and not during the game.

$
0
0

I have used Steamworks to implement achievements in my Unity game.

It works, but for some kind of a reason the achievements only appear after you close the game.

I mean the little notify pop up in the bottom right corner.

This is basically my code(calling the dll I used to wrap Steamworks C++ with C):

This is inside void Start()

{
            bool success = BridgeAPI_Init();
//            Utility.DisplayDialog("SteamWorks", "SteamAPI_Init" + (success ? " successeded" : " failed"), "Ok", "Cancel");
            Debug.Log("SteamAPI_Init" + (success ? " succeeded" : " failed"));
            dbgMsg = "SteamAPI_Init" + (success ? " succeeded" : " failed");
            if (success)
            {
                if (BridgeAPI_RequestCurrentStats())
                {
                    dbgMsg = "RequestCurrentStats succeeded";
                    achievmentsEnable = true;
                }
                else
                    dbgMsg = "RequestCurrentStats failed";
                IntPtr unmanagedPointer …

Viewing all articles
Browse latest Browse all 17925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>