You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
564 B
23 lines
564 B
2 years ago
|
using UnityEngine;
|
||
|
|
||
|
namespace UIWidgets {
|
||
|
/// <summary>
|
||
|
/// ComboboxIcons item component.
|
||
|
/// Demonstrate how to remove selected item - add Remove() call on Button.OnClick().
|
||
|
/// </summary>
|
||
|
[AddComponentMenu("UI/UIWidgets/ComboboxIconsItemComponent")]
|
||
|
public class ComboboxIconsItemComponent : ListViewIconsItemComponent {
|
||
|
/// <summary>
|
||
|
/// ComboboxIcons.
|
||
|
/// </summary>
|
||
|
public ComboboxIcons ComboboxIcons;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Remove this instance.
|
||
|
/// </summary>
|
||
|
public void Remove()
|
||
|
{
|
||
|
ComboboxIcons.ListView.Deselect(Index);
|
||
|
}
|
||
|
}
|
||
|
}
|