Replies: 6 comments 3 replies
-
Fix AA: AA is for reducing restrictions on argument type. Callable(myObject.mySignal, "emit") # requires allowing argument to be a built-in. |
Beta Was this translation helpful? Give feedback.
-
Fix BB: BB is for reducing restrictions on bind (this fixes for Signals on non-built-in Objects). Callable(myObject, "emit_signal").bind("mySignal") |
Beta Was this translation helpful? Give feedback.
-
Fix CC: CC is for arguments to allow Signals (this only fixes for Signals and not other built-ins). Callable(myObject.mySignal) # requires allowing first argument to be a Signal. |
Beta Was this translation helpful? Give feedback.
-
Fix DD: DD is for allowing casting Signals into Objects (this only fixes for Signals and not other built-ins). Callable(myObject.mySignal as Object, "emit") # requires allowing Signals to be cast as Objects. |
Beta Was this translation helpful? Give feedback.
-
@RefinedSoftwareLLC can't understand your posts enough well because lack of context; What AA, BB, CC, [...] means? (also better to group all your comments with the main post) |
Beta Was this translation helpful? Give feedback.
-
This is implemented for future 4.3: |
Beta Was this translation helpful? Give feedback.
-
A Callable references a method of an object for callbacks and plugins.
Callables can execute methods of non-built-in object types but not methods of native built-in types, especially Callable(Signal), because built-ins do not inherit from the class Object.
Possible fixes AA, BB, etc are given below for voting and attaching feedback.
None of these fixes work with Godot 4 alpha 3.
To promote fixing this issue, vote on this post, and each fix below that you would welcome.
Beta Was this translation helpful? Give feedback.
All reactions