Click or drag to resize

TreeGetDropSectionAtPosition Method

Returns the drop section at position, or -100 if no item is there.

Values -1, 0, or 1 will be returned for the "above item", "on item", and "below item" drop sections, respectively. See TreeDropModeFlagsEnum for a description of each drop section.

To get the item which the returned drop section is relative to, use GetItemAtPosition(Vector2).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int GetDropSectionAtPosition(
	Vector2 position
)

Parameters

position
Type: GodotVector2

[Missing <param name="position"/> documentation for "M:Godot.Tree.GetDropSectionAtPosition(Godot.Vector2)"]

Return Value

Type: Int32

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

See Also