Click or drag to resize

Physics2DServerAreaSetMonitorCallback Method

Sets the function to call when any body/area enters or exits the area. This callback will be called for any object interacting with the area, and takes five parameters:

1: or , depending on whether the object entered or exited the area.

2: RID of the object that entered/exited the area.

3: Instance ID of the object that entered/exited the area.

4: The shape index of the object that entered/exited the area.

5: The shape index of the area where the object entered/exited.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void AreaSetMonitorCallback(
	RID area,
	Object receiver,
	string method
)

Parameters

area
Type: GodotRID

[Missing <param name="area"/> documentation for "M:Godot.Physics2DServer.AreaSetMonitorCallback(Godot.RID,Godot.Object,System.String)"]

receiver
Type: GodotObject

[Missing <param name="receiver"/> documentation for "M:Godot.Physics2DServer.AreaSetMonitorCallback(Godot.RID,Godot.Object,System.String)"]

method
Type: SystemString

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

See Also