Engine.IsUIMessageQueueEmpty
Indicates if the UIMessage queue is empty.
If you are writing a sequence editor or user interface, use this property when polling for UIMessages to determine whether a message in the queue is pending. You must set the UIMessagePollingEnabled property to True to poll for UIMessages.