Skip to main content

Steam Callback Pump Scaffold Generator

Minimal MonoBehaviour scaffold so invites, stats, and inventory results actually dispatch.

After the pump runs, review C# for short-lived delegates and disposed objects holding Steam callbacks — common sources of “sometimes it fires, sometimes it doesn’t.”

RunCallbacks must run frequently on the thread expected by your wrapper. This emits a minimal Unity pump; adapt for dedicated server splits.

using Steamworks;
using UnityEngine;
public sealed class SteamCallbackPump : MonoBehaviour
{
    void Update()
    {
        SteamAPI.RunCallbacks();
    }
}
Generated Markdown
Nothing happens after Steam API calls?
Callbacks may not be pumped. Ensure RunCallbacks runs on the correct thread at a steady cadence.