Click or drag to resize

OptionButtonAddItem Method

Adds an item, with text label and (optionally) id. If no id is passed, the item index will be used as the item's ID. New items are appended at the end.

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

Parameters

label
Type: SystemString

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

id (Optional)
Type: SystemInt32

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

See Also