SmartFoxServer Unity/.NET API
ProcessEventQueue Method
NamespacesSmartFoxClientAPISmartFoxClientProcessEventQueue()()()
Called in queue mode to process the events that have been queued up for dispatching
Declaration Syntax
C#Visual BasicVisual C++
public void ProcessEventQueue()
Public Sub ProcessEventQueue
public:
void ProcessEventQueue()
Remarks

The queue mode is preferred in non-thread safe environments like the Unity game engine, or where you want precise control of when callbacks happen.

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to set the game in queued mode and how to process the queue.
CopyC#
 smartFox = new SmartFoxClient();
smartFox.runInQueueMode = true;

void FixedUpdate() {
    smartFox.ProcessEventQueue();
}
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)