RunningOnUIThread()
Checks whether the current thread is the UI thread.
阅读时间1 分钟最后更新于 22 天前
Definition
- Type: Method
- Namespace: UnityEngine.WSA
- Assembly: UnityEngine.CoreModule
public static bool RunningOnUIThread()
Returns
Type | Description |
|---|---|
| bool | True if the current thread is the UI thread. Otherwise, false. |
Remarks
More information on UI and application threads can be found here.