-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support builtin class methods with varcall #382
Comments
Looks like Godot implemented support for builtin methods via varcall, so we could provide them as well. |
This is available from 4.2. |
I just started using godot-rs and I'm loving it so far, but Callable::bind is a very significant missing piece. Binding arguments to callables is the most convenient way to do some things in godot, such as when you have a list of buttons and you want to connect their "pressed" signals to the same receiving function and you want the buttons to identify themselves to the receiver I wish I could do this myself but I'm not nearly familiarized enough with godot or godot-rs to write the code. But if there's no more objections on the godot C++ side I'd really love to see this implemented on godot-rs |
The following methods on builtins take varargs and thus follow the varcall convention:
The
variant_get_ptr_builtin_method
API returnsnull
when invoked for the respective variant types, methods names and hashes.This likely needs an additional API on GDExtension side.
The text was updated successfully, but these errors were encountered: