API ReferenceSandbox
public static abstract sealed class Sandbox.MainThread
Utility functions that revolve around the main thread
Methods
Showing 2 methods
public static void Queue(System.Action method)
When running in another thread you can queue a method to run in the main thread. If you are on the main thread we will execute the method immediately and return.
public static Sandbox.Tasks.SyncTask Wait()
Wait to execute on the main thread
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.MainThread |