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