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). |