-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Core: Add Callable.create
static method for Variant
callables
#88948
Core: Add Callable.create
static method for Variant
callables
#88948
Conversation
ec5527f
to
0cb7de0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great way to fix #87122!
@@ -160,7 +188,11 @@ | |||
<method name="is_custom" qualifiers="const"> | |||
<return type="bool" /> | |||
<description> | |||
Returns [code]true[/code] if this [Callable] is a custom callable. Custom callables are created from [method bind] or [method unbind]. In GDScript, lambda functions are also custom callables. | |||
Returns [code]true[/code] if this [Callable] is a custom callable. Custom callables are used: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be better to reword the list to describe how custom Callables are created, how to create and obtain them, rather than list what they're used for.
I have no suggestions at the moment.
0cb7de0
to
d90c9db
Compare
Thanks! |
Variant
types to be used as Callables #82264.Callable(Variant, StringName)
constructor is quite difficult to implement due to binding limitations.