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
public static void AreaSetMonitorCallback( RID area, Object receiver, string method )
[Missing <param name="area"/> documentation for "M:Godot.Physics2DServer.AreaSetMonitorCallback(Godot.RID,Godot.Object,System.String)"]
[Missing <param name="receiver"/> documentation for "M:Godot.Physics2DServer.AreaSetMonitorCallback(Godot.RID,Godot.Object,System.String)"]
[Missing <param name="method"/> documentation for "M:Godot.Physics2DServer.AreaSetMonitorCallback(Godot.RID,Godot.Object,System.String)"]