s&box docs

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

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.MainThread

On this page