setCursor(style: Cursor): void

Set cursor style (check Cursor type for possible values). Cursor will be reset to "default" every frame so use this in an per-frame action.

sincev3000.0

button.onHover((c) => {
    setCursor("pointer")
})
kaplay logo

3001.0.0-alpha.18

Misc