Click or drag to resize

PopupMenuGetItemIndex Method

Returns the index of the item containing the specified id. Index is automatically assigned to each item by the engine. Index can not be set manually.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int GetItemIndex(
	int id
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.PopupMenu.GetItemIndex(System.Int32)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.PopupMenu.GetItemIndex(System.Int32)"]

See Also