docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate FSteamNetworkingSocketsDebugOutput

    Receives debug output from SteamNetworkingSockets. Install it, together with the verbosity level, through SetDebugOutputFunction(ESteamNetworkingSocketsDebugOutputType, FSteamNetworkingSocketsDebugOutput). May be called from any thread.

    The target must be a static method marked [AOT.MonoPInvokeCallback(typeof(FSteamNetworkingSocketsDebugOutput))]: IL2CPP only generates a native-callable wrapper for such methods, and without one the call fails at runtime, not at build time. Catch every exception in the handler. An exception that unwinds into Steam causes undefined behavior.

    Namespace: Unity.Steamworks.Interop
    Assembly: Unity.Steamworks.Interop.dll
    Syntax
    public delegate void FSteamNetworkingSocketsDebugOutput(ESteamNetworkingSocketsDebugOutputType nType, IntPtr pszMsg)
    Parameters
    Type Name Description
    ESteamNetworkingSocketsDebugOutputType nType

    How severe the message is.

    IntPtr pszMsg

    The null-terminated UTF-8 message; read it with PtrToStringUTF8(IntPtr).

    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)