Merge pull request #99837 from thiagola92/docs_window_files_dropped
Docs: update example from Window signal files_dropped
This commit is contained in:
commit
1745fe15a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue