setCursor(style: Cursor): void

Set cursor style.

paramstyle- The cursor style.

// Change between cursor styles

// Reset cursor to default at start of every frame
onUpdate(() => setCursor("default"));

button.onHover((c) => {
   // change cursor to pointer when hovering over button
    setCursor("pointer")
})

// Hide the only cursor at start (useful for fakeMouse)
setCursor("none");

sincev2000.0

kaplay logo

Misc

Layer