docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamCallbackMsg

    Public mirror of the Steam callback message. The native pointer is only valid for the duration of the dispatch loop iteration.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.PlatformToolkit.Steam
    Assembly: Unity.PlatformToolkit.Steam.dll
    Syntax
    public struct SteamCallbackMsg

    Fields

    m_cubParam

    Size in bytes of the parameter data.

    Declaration
    public int m_cubParam
    Field Value
    Type Description
    int

    m_hSteamUser

    The Steam user handle this callback is for.

    Declaration
    public int m_hSteamUser
    Field Value
    Type Description
    int

    m_iCallback

    The callback type ID. Compare against k_iCallback constants on Steam structs.

    Declaration
    public int m_iCallback
    Field Value
    Type Description
    int

    m_pubParam

    Pointer to the parameter data. Only valid inside the OnCallback handler.

    Declaration
    public IntPtr m_pubParam
    Field Value
    Type Description
    IntPtr

    Methods

    GetMsg<T>()

    Deserializes the callback parameter data into T. Only call this inside the OnCallback handler.

    Declaration
    public T GetMsg<T>() where T : struct
    Returns
    Type Description
    T

    The deserialized callback data as T.

    Type Parameters
    Name Description
    T

    The Steamworks callback struct to deserialize into. Must match the struct type for the callback identified by m_iCallback.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the callback has no parameter data, or if T is larger than the available parameter data.

    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)