Version: 2023.1

Awaitable.MainThreadAsync

切换到手册
public static MainThreadAwaitable MainThreadAsync ();

返回

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

描述

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