๐ฃ๏ธ RPC Responder Interface
Short Description
Interface for AutoReplication owners that want to handle queued RPCs automatically.
Long Description
Implement this interface on a QoL class to receive AutoReplication RPC payloads when the mixin drains its pending queue. This allows Blueprint or C++ classes to process RPCs without manual polling.
๐ Features
- Blueprint-native handler for queued RPC payloads.
- Works with the AutoReplication mixin dispatch path.
๐ Usage Examples
Implement Handle AutoReplication RPC in your PlayerController or GameState.
void AMyController::HandleAutoReplicationRPC_Implementation(const FGorgeousQueuedRPC& QueuedRPC)
{
// handle the RPC
}
HandleAutoReplicationRPC
Called when the mixin dispatches a queued RPC for the owning AutoReplication class.
| Parameter Name | Type | Description |
|---|---|---|
QueuedRPC |
FGorgeousQueuedRPC |
RPC payload with handler name and arguments. |
Add logic in the interface event node.
Best Practices
- Use handler names that match the RPC payload
HandlerNameexactly.
Troubleshooting
- If handlers do not fire, confirm the owner implements the interface and the mixin dispatches pending RPCs.