Files
Studio/Assets/Scripts/ExternalAssets/com.unity.uiextensions/Examples/ComboBox/ComboBoxChanged.cs
2025-05-21 12:10:38 +09:00

35 lines
1.0 KiB
C#

namespace UnityEngine.UI.Extensions.Examples
{
public class ComboBoxChanged : MonoBehaviour
{
public void ComboBoxChangedEvent(string text)
{
Debug.Log($"ComboBox changed [{text}]");
}
public void AutoCompleteComboBoxChangedEvent(string text)
{
Debug.Log($"AutoCompleteComboBox changed [{text}]");
}
public void AutoCompleteComboBoxSelectionChangedEvent(string text, bool valid)
{
Debug.Log($"AutoCompleteComboBox selection changed [{text}] and its validity was [{valid}]");
}
public void AutoCompleteComboBoxValidityChangedEvent(bool value)
{
Debug.Log($"AutoCompleteComboBox changed, is valid? [{value}]");
}
public void AutoCompleteComboBoxItemSelectedEvent(string text)
{
Debug.Log($"AutoCompleteComboBox selected item [{text}]");
}
public void DropDownChangedEvent(int newValue)
{
Debug.Log($"DropDown changed [{newValue}]");
}
}
}