Scripting API

Cursor

class in UnityEngine · UnityEngine.CoreModule

4 of 4 of Unity's membersUnity's documentation
In Tassix

The mouse cursor: shown or hidden, locked to the window's center or confined to it, applied to the window at the end of the frame. Custom cursor images aren't drawn yet (the system cursor stays).

Properties 2

static CursorLockMode lockState { get; set; }
static bool visible { get; set; }

Methods 1

static void SetCursor(Texture2D? texture, Vector2 hotspot, CursorMode cursorMode)

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.