mirror of https://github.com/godotengine/godot
Docs: update example from Window signal files_dropped
This commit is contained in:
parent
0eadbdb5d0
commit
e30da67ce9
|
|
@ -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.
|
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]
|
[codeblock]
|
||||||
func _ready():
|
func _ready():
|
||||||
get_viewport().files_dropped.connect(on_files_dropped)
|
get_window().files_dropped.connect(on_files_dropped)
|
||||||
|
|
||||||
func on_files_dropped(files):
|
func on_files_dropped(files):
|
||||||
print(files)
|
print(files)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue