From 7c24d72ca61345dc9c214fe4f9ae90f5c24eeefd Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Mon, 16 Jun 2025 05:42:20 -0400 Subject: [PATCH] [Web] Add notice about issues with setting custom cursor shape every frame Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com> --- doc/classes/DisplayServer.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 04330c4355..0ed398d7d0 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -724,6 +724,7 @@ Sets a custom mouse cursor image for the given [param shape]. This means the user's operating system and mouse cursor theme will no longer influence the mouse cursor's appearance. [param cursor] can be either a [Texture2D] or an [Image], and it should not be larger than 256×256 to display correctly. Optionally, [param hotspot] can be set to offset the image's position relative to the click point. By default, [param hotspot] is set to the top-left corner of the image. See also [method cursor_set_shape]. + [b]Note:[/b] On Web, calling this method every frame can cause the cursor to flicker.