Static function
Slow
Viewport.SetHardwareCursor
Loads and sets a hardware cursor in the game from a PNG image<br/>Note: due an engine limitation modifying an already set cursor image will not change the cursor until the game is restarted
Syntax
Viewport.SetHardwareCursor(cursor_shape, cursor_path, hotspot = Vector(0, 0))
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
cursor_shape
|
CursorType | — | — |
cursor_path
|
ImagePath | — | a PNG image relative to Assets/ |
hotspot
optional
|
Vector2D | Vector(0, 0) |
— |