0 votes

I found drag file to godot program change mouse shape (with plus)

is there any listener for that?

enter image description here

Godot version 3.2.3-stable
in Engine by (57 points)

1 Answer

+7 votes
Best answer
func _ready():
    get_tree().connect("files_dropped", self, "_on_files_dropped")

func _on_files_dropped(files, screen):

"files" is a PoolStringArray containing strings of all the files you're dragging, so use files[0] if you only need one.

by (83 points)
selected by

WOW, Awesome !
Thank you, rainlizard !

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.