Class Looper
An object that contains its own message queue and its own running loop for dequeuing messages to pass them to Handler targets.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: solution.dll
Syntax
public class Looper
Constructors
| Name | Description |
|---|---|
| Looper() | Default constructor. |
| Looper(IVisualElementScheduler) | Default constructor using the Unity UI-Toolkit VisualElement scheduler to run the loop. |
Properties
| Name | Description |
|---|---|
| inLoop | Check if the Looper is currently active. |
| queue | The looper's message queue. |
Methods
| Name | Description |
|---|---|
| Loop() | Start the loop execution. |
| Quit() | Promptly stop the loop execution and clear the remaining message without handling them.
|
| SafelyQuit() | Stop the loop execution but handle all remaining messages in the queue before clearing it. |