2017-08-03 00:50:22 +08:00
|
|
|
|
namespace UnityEngine.UI.Extensions.Examples
|
2017-08-02 17:21:45 +08:00
|
|
|
|
{
|
|
|
|
|
public class ComboBoxChanged : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public void ComboBoxChangedEvent(string text)
|
|
|
|
|
{
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
Debug.Log("ComboBox changed [" + text + "]");
|
|
|
|
|
}
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
public void AutoCompleteComboBoxChangedEvent(string text)
|
|
|
|
|
{
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
Debug.Log("AutoCompleteComboBox changed [" + text + "]");
|
|
|
|
|
}
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
public void AutoCompleteComboBoxSelectionChangedEvent(string text, bool valid)
|
|
|
|
|
{
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
Debug.Log("AutoCompleteComboBox selection changed [" + text + "] and its validity was [" + valid + "]");
|
|
|
|
|
}
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
public void DropDownChangedEvent(int newValue)
|
|
|
|
|
{
|
2017-05-17 01:51:24 +08:00
|
|
|
|
|
2017-08-02 17:21:45 +08:00
|
|
|
|
Debug.Log("DropDown changed [" + newValue + "]");
|
|
|
|
|
}
|
2017-05-17 01:51:24 +08:00
|
|
|
|
}
|
2017-08-02 17:21:45 +08:00
|
|
|
|
}
|