# Cursor

> Script interface for VisualElement cursor style property _cursor.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<Cursor>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct Cursor : IEquatable<Cursor>
```

## Properties

| Property                                                                            | Description                                                                                                                                                                   |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [hotspot](/engine/6000.6/script-reference/unityengine/uielements/cursor/hotspot.md) | The offset from the top left of the texture to use as the active point of the cursor. The offset must be within the bounds of the cursor.                                     |
| [texture](/engine/6000.6/script-reference/unityengine/uielements/cursor/texture.md) | The texture to use for the cursor style. To use a texture as a cursor, import the texture with "Read/Write enabled" in the texture importer (or using the "Cursor" defaults). |
