GodotObject.connect

Connects a signal to a method on a target object. Pass optional binds to the call. Use flags to set deferred or one shot connections. See CONNECT_* constants. A signal can only be connected once to a method. It will throw an error if already connected. To avoid this, first use isConnected to check for existing connections.

struct GodotObject
@nogc nothrow
GodotError
connect
(
StringArg0
StringArg2
)
(
in StringArg0 signal
,,
in StringArg2 method
,
in Array binds = Array.empty_array
,
in long flags = 0
)

Meta