summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-01-06 16:35:42 +0100
committerJuan Linietsky <reduzio@gmail.com>2023-01-06 22:37:25 +0100
commitd762a0395a27d523d73066708d0d8f0e9077f5fd (patch)
tree5b7618ecf6266299c80b0c004e0d569b012ea721 /doc
parentb14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff)
Allow binding Callable arguments from an array
Restores 3.x functionality that was removed in the Signal/Callable refactor of 4.0. Fixes #64668. Implements https://github.com/godotengine/godot-proposals/issues/6034 Usage: ```GDScript callable.bindv([arg1,arg2,arg3]) ```
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Callable.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml
index 1fb4f91920..5c845ba57e 100644
--- a/doc/classes/Callable.xml
+++ b/doc/classes/Callable.xml
@@ -77,6 +77,13 @@
Returns a copy of this [Callable] with one or more arguments bound. When called, the bound arguments are passed [i]after[/i] the arguments supplied by [method call].
</description>
</method>
+ <method name="bindv">
+ <return type="Callable" />
+ <param index="0" name="arguments" type="Array" />
+ <description>
+ Returns a copy of this [Callable] with one or more arguments bound, reading them from an array. When called, the bound arguments are passed [i]after[/i] the arguments supplied by [method call].
+ </description>
+ </method>
<method name="call" qualifiers="vararg const">
<return type="Variant" />
<description>