This version of Unity is unsupported.

Awaitable.MainThreadAsync

Declaration

public static MainThreadAwaitable MainThreadAsync();

Returns

MainThreadAwaitable Awaitable object that completes when switching on the main thread.

Description

Resumes execution on the Unity main thread. If the caller is already on the main thread, it will complete immediately.