You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails to indicate some things that resulted in great confusion as someone trying to learn godot. When using CONNECT_REFERENCE_COUNTED:
The binds parameter in the connect function is only used in the first connection
Even when using CONNECT_REFERENCE_COUNTED, it will only fire a target/method pair once
Further, the connect documentation claims that:
It will throw an error if already connected, unless the signal was connected with CONNECT_REFERENCE_COUNTED
However, this is not fully true: if you call connect the 2nd time with CONNECT_REFERENCE_COUNTED, it won't error, even if you did not use CONNECT_REFERENCE_COUNTED for the first connection.
The text was updated successfully, but these errors were encountered:
Reference-counted connections can be assigned to the same [Callable] multiple times. Each disconnection decreases the internal counter. The signal fully disconnects only when the counter reaches 0.
Godot version: v3.2.3.stable.official
URL to the documentation page: https://docs.godotengine.org/en/stable/classes/class_object.html (under
connect
)It fails to indicate some things that resulted in great confusion as someone trying to learn godot. When using
CONNECT_REFERENCE_COUNTED
:binds
parameter in theconnect
function is only used in the first connectionCONNECT_REFERENCE_COUNTED
, it will only fire a target/method pair onceFurther, the
connect
documentation claims that:However, this is not fully true: if you call
connect
the 2nd time withCONNECT_REFERENCE_COUNTED
, it won't error, even if you did not useCONNECT_REFERENCE_COUNTED
for the first connection.The text was updated successfully, but these errors were encountered: