Class CallbackIdentityAttribute
Tags a generated callback struct with its Steam callback id (its k_iCallback), which Subscribe<T>(Action<T>, bool) uses to route the subscription.
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
public sealed class CallbackIdentityAttribute : Attribute
Constructors
CallbackIdentityAttribute(int)
Marks the struct as the payload of callback id callbackNum.
Declaration
public CallbackIdentityAttribute(int callbackNum)
Parameters
| Type | Name | Description |
|---|---|---|
| int | callbackNum | The struct's k_iCallback. |
Properties
Identity
The Steam callback id this struct is delivered under.
Declaration
public int Identity { get; }
Property Value
| Type | Description |
|---|---|
| int |