mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Properly report Callable bound arguments
Fixes #63213 Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
This commit is contained in:
@@ -100,6 +100,12 @@
|
||||
Calls the method represented by this [Callable]. Unlike [method call], this method expects all arguments to be contained inside the [param arguments] [Array].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_bound_arguments_count" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Returns the total amount of arguments bound (or unbound) via successive [method bind] or [method unbind] calls. If the amount of arguments unbound is greater than the ones bound, this function returns a value less than zero.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_method" qualifiers="const">
|
||||
<return type="StringName" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user