Replies: 2 comments
-
What causes an error for you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's similar to # If you want to use `Object.connect()`, the signal should be specified as a string
connect("some_signal", some_function.bindv(args))
# But it's recommended to use the signal directly
some_signal.connect(some_function.bindv(args))
# If you don't want to pass the arguments as an array
some_signal.connect(some_function.bind(arg0, arg1, arg2))
# If you don't want to pass extra arguments
some_signal.connect(some_function) Also in case you want an lambda: See the class reference: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used to write Vue. The emit is very simple.
The signal and connection in GDScript are so hard to understand for me. It always drops me an error : (
I hope receiving a signal could be like this:
Beta Was this translation helpful? Give feedback.
All reactions