Click or drag to resize

ObjectDisconnect Method

Disconnects a signal from a method on the given target.

If you try to disconnect a connection that does not exist, the method will throw an error. Use IsConnected(String, Object, String) to ensure that the connection exists.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void Disconnect(
	string signal,
	Object target,
	string method
)

Parameters

signal
Type: SystemString

[Missing <param name="signal"/> documentation for "M:Godot.Object.Disconnect(System.String,Godot.Object,System.String)"]

target
Type: GodotObject

[Missing <param name="target"/> documentation for "M:Godot.Object.Disconnect(System.String,Godot.Object,System.String)"]

method
Type: SystemString

[Missing <param name="method"/> documentation for "M:Godot.Object.Disconnect(System.String,Godot.Object,System.String)"]

See Also