You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous 4.3 (and 4.2, etc) builds, I could use an AtlasTexture to set a Texture2D value to be set as a custom mouse cursor with Input.set_custom_mouse_cursor. This no longer works, and the entire atlas is rendered on screen as the cursor.
See the attached video showing the problem.
Screen.Recording.2024-06-02.at.10.33.43.AM.mov
Steps to reproduce
Set two exported Texture2D values using an AtlasTexture.
Use those Texture2D values to set the default custom mouse cursor and the pointing hand custom mouse cursor using Input.set_custom_mouse_cursor.
Run the project and see that the entire atlas is rendered as the mouse cursor, not just the texture selected within the atlas.
This picture shows the simple repro setup required:
The code to reproduce is also simple:
extends Control
@export var default_mouse_cursor: Texture2D
@export var pointing_hand_mouse_cursor: Texture2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Input.set_custom_mouse_cursor(default_mouse_cursor)
Input.set_custom_mouse_cursor(pointing_hand_mouse_cursor, Input.CURSOR_POINTING_HAND)
Tested versions
System information
MacOS Sonoma 14.4.1 - Godot v4.3.beta1 - forward_plus - vulkan
Issue description
In previous 4.3 (and 4.2, etc) builds, I could use an AtlasTexture to set a Texture2D value to be set as a custom mouse cursor with
Input.set_custom_mouse_cursor
. This no longer works, and the entire atlas is rendered on screen as the cursor.See the attached video showing the problem.
Screen.Recording.2024-06-02.at.10.33.43.AM.mov
Steps to reproduce
Input.set_custom_mouse_cursor
.This picture shows the simple repro setup required:
The code to reproduce is also simple:
Minimal reproduction project (MRP)
Just run this project to see the behavior
mouse-cursor-bug-repro.zip
The text was updated successfully, but these errors were encountered: