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 …