Click or drag to resize

PopupMenuAddSeparator Method

Adds a separator between items. Separators also occupy an index, which you can set by using the id parameter.

A label can optionally be provided, which will appear at the center of the separator.

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

Parameters

label (Optional)
Type: SystemString

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

id (Optional)
Type: SystemInt32

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

See Also