# SetCustomCursor(uint)

> Set a custom cursor.

## Definition

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

```csharp
public static void SetCustomCursor(uint id)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The cursor resource id.

### Remarks

This creates new CoreCursor(CoreCursorType::Custom, id) and assigns it to CoreIndependentInputSource.PointerCursor if independent input source is enabled, otherwise it's assigned to CoreWindow\.PointerCursor. The resource id for cursor is created inside Win32 .RC file. **Note:** Passing 0 will reset cursor to the arrow icon.
