OS file drag & drop hover events

Godot Version

v4.4.1.stable.official [49a5bc7b6]

Question

hiya! I’m looking to make a UI for a personal application in Godot (gotta learn it somehow hey!)

I’ve found the get_viewport().files_dropped signal to attach to for when a drop occurs, but i’d like to reactively do a few things as files are being hovered, and I can’t seem to find some kind of files_hover signal to listen for changes.
I was wondering if someone might be able to give some good insight on this!

So, thanks in advance :))

  • ramar

I don’t think that’s possible. The most you can do is to know if the mouse is hovering over the window with Window.mouse_entered and Window.mouse_exited but there’s no way to know if files are hovered or not.

This functionality is not implemented and not available in Godot. Every once in a while this feature idea comes up and there have been created a few related proposals:

1 Like