Click or drag to resize

ControlHasPoint Method

Virtual method to be implemented by the user. Returns whether the given point is inside this control.

If not overridden, default behavior is checking if the point is within control's Rect.

Note: If you want to check if a point is inside the control, you can use get_rect().has_point(point).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual bool HasPoint(
	Vector2 point
)

Parameters

point
Type: GodotVector2

[Missing <param name="point"/> documentation for "M:Godot.Control.HasPoint(Godot.Vector2)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Control.HasPoint(Godot.Vector2)"]

See Also