# RunningOnUIThread()

> Checks whether the current thread is the UI thread.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.WSA](/engine/7000.0/script-reference/unityengine/wsa.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool RunningOnUIThread()
```

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the current thread is the UI thread. Otherwise, false. |

### Remarks

More information on UI and application threads can be found here.
