Click or drag to resize

OptionButtonSetItemDisabled Method

Sets whether the item at index idx is disabled.

Disabled items are drawn differently in the dropdown and are not selectable by the user. If the current selected item is set as disabled, it will remain selected.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetItemDisabled(
	int idx,
	bool disabled
)

Parameters

idx
Type: SystemInt32

[Missing <param name="idx"/> documentation for "M:Godot.OptionButton.SetItemDisabled(System.Int32,System.Boolean)"]

disabled
Type: SystemBoolean

[Missing <param name="disabled"/> documentation for "M:Godot.OptionButton.SetItemDisabled(System.Int32,System.Boolean)"]

See Also