Click or drag to resize

ItemListGetItemAtPosition Method

Returns the item index at the given position.

When there is no item at that point, -1 will be returned if exact is true, and the closest item index will be returned otherwise.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int GetItemAtPosition(
	Vector2 position,
	bool exact = false
)

Parameters

position
Type: GodotVector2

[Missing <param name="position"/> documentation for "M:Godot.ItemList.GetItemAtPosition(Godot.Vector2,System.Boolean)"]

exact (Optional)
Type: SystemBoolean

[Missing <param name="exact"/> documentation for "M:Godot.ItemList.GetItemAtPosition(Godot.Vector2,System.Boolean)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.ItemList.GetItemAtPosition(Godot.Vector2,System.Boolean)"]

See Also