docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SteamCallbacks

    Entry point for Steam callbacks and async call results beyond Platform Toolkit's built-in abstractions.

    Inheritance
    object
    SteamCallbacks
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.PlatformToolkit.Steam
    Assembly: Unity.PlatformToolkit.Steam.dll
    Syntax
    public static class SteamCallbacks

    Methods

    GetCallResult<T>(Func<ulong>)

    Awaits a Steam async call result. Pass a method that calls the Steamworks API and returns the SteamAPICall_t handle.

    Declaration
    public static Task<T> GetCallResult<T>(Func<ulong> steamAsyncFunc) where T : struct
    Parameters
    Type Name Description
    Func<ulong> steamAsyncFunc

    A method that invokes a Steamworks API and returns the SteamAPICall_t handle value (as a ulong).

    Returns
    Type Description
    Task<T>

    A Task<TResult> that completes with the deserialized call result when Steam delivers the response.

    Type Parameters
    Name Description
    T

    The Steamworks call result struct to deserialize the response into. Must match the call result type that the invoked API returns.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if PlatformToolkit.Initialize() has not completed before calling this method.

    Events

    OnCallback

    Raised for every Steam callback seen internally by Platform Toolkit.

    Declaration
    public static event Action<SteamCallbackMsg> OnCallback
    Event Type
    Type Description
    Action<SteamCallbackMsg>
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)