Click or drag to resize

Navigation2DGetClosestPointOwner Method

Returns the owner of the NavigationPolygon which contains the navigation point closest to the point given. This is usually a NavigationPolygonInstance. For polygons added via NavpolyAdd(NavigationPolygon, Transform2D, Object), returns the owner that was given (or null if the owner parameter was omitted).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Object GetClosestPointOwner(
	Vector2 toPoint
)

Parameters

toPoint
Type: GodotVector2

[Missing <param name="toPoint"/> documentation for "M:Godot.Navigation2D.GetClosestPointOwner(Godot.Vector2)"]

Return Value

Type: Object

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

See Also