Click or drag to resize

PopupMenuAddSubmenuItem Method

Adds an item that will act as a submenu of the parent PopupMenu node when clicked. The submenu argument is the name of the child PopupMenu node that will be shown when the item is clicked.

An id can optionally be provided. If no id is provided, one will be created from the index.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddSubmenuItem(
	string label,
	string submenu,
	int id = -1
)

Parameters

label
Type: SystemString

[Missing <param name="label"/> documentation for "M:Godot.PopupMenu.AddSubmenuItem(System.String,System.String,System.Int32)"]

submenu
Type: SystemString

[Missing <param name="submenu"/> documentation for "M:Godot.PopupMenu.AddSubmenuItem(System.String,System.String,System.Int32)"]

id (Optional)
Type: SystemInt32

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

See Also