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
public void SetItemMetadata( int idx, Object metadata )
[Missing <param name="idx"/> documentation for "M:Godot.PopupMenu.SetItemMetadata(System.Int32,System.Object)"]
[Missing <param name="metadata"/> documentation for "M:Godot.PopupMenu.SetItemMetadata(System.Int32,System.Object)"]