Click or drag to resize

OptionButtonAddIconItem Method

Adds an item, with a texture icon, 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 AddIconItem(
	Texture texture,
	string label,
	int id = -1
)

Parameters

texture
Type: GodotTexture

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

label
Type: SystemString

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

id (Optional)
Type: SystemInt32

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

See Also