Changes the context of the following commands to the MainThread when yielded.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static readonly SwitchTo MainThread
Visual Basic
Public Shared ReadOnly MainThread As SwitchTo
Visual C++
public:
static initonly SwitchTo^ MainThread

See Also