Called in queue mode to process the events that have been queued up for dispatching
| C# | Visual Basic | Visual C++ |
public void ProcessEventQueue()
Public Sub ProcessEventQueue
public: void ProcessEventQueue()
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
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(); }