Add signals to mouse interaction for Control, Sprite2D and AnimatedSprite2D #9435
azur-wolve
started this conversation in
2D
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To know if the mouse has clicked or is hoviring a
Sprite2D
, or the current frame of anAnimatedSprite2D
, a lot of t workaround is necessary.for a
Sprite2D
:for an
AnimatedSprite2D
:yes can be done, but thats a lot to only check for mouse interaction with a sprite
as its something of generic use should be core
Proposals:
mouse_entered
,mouse_exited
,mouse_hover
,mouse_clicked
(Control
could benefit as well)Texture2D
Beta Was this translation helpful? Give feedback.
All reactions