Click or drag to resize

PopupMenuSetItemMetadata Method

Sets the metadata of an item, which may be of any type. You can later get it with GetItemMetadata(Int32), which provides a simple way of assigning context data to items.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetItemMetadata(
	int idx,
	Object metadata
)

Parameters

idx
Type: SystemInt32

[Missing <param name="idx"/> documentation for "M:Godot.PopupMenu.SetItemMetadata(System.Int32,System.Object)"]

metadata
Type: SystemObject

[Missing <param name="metadata"/> documentation for "M:Godot.PopupMenu.SetItemMetadata(System.Int32,System.Object)"]

See Also