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
public void AddSubmenuItem( string label, string submenu, int id = -1 )
[Missing <param name="label"/> documentation for "M:Godot.PopupMenu.AddSubmenuItem(System.String,System.String,System.Int32)"]
[Missing <param name="submenu"/> documentation for "M:Godot.PopupMenu.AddSubmenuItem(System.String,System.String,System.Int32)"]
[Missing <param name="id"/> documentation for "M:Godot.PopupMenu.AddSubmenuItem(System.String,System.String,System.Int32)"]