Skip to content

Commit

Permalink
Merge pull request godotengine#99837 from thiagola92/docs_window_file…
Browse files Browse the repository at this point in the history
…s_dropped

Docs: update example from Window signal files_dropped
  • Loading branch information
akien-mga committed Nov 29, 2024
2 parents f6afacb + e30da67 commit 1745fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/Window.xml
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@
Emitted when files are dragged from the OS file manager and dropped in the game window. The argument is a list of file paths.
[codeblock]
func _ready():
get_viewport().files_dropped.connect(on_files_dropped)
get_window().files_dropped.connect(on_files_dropped)

func on_files_dropped(files):
print(files)
Expand Down

0 comments on commit 1745fe1

Please sign in to comment.