Patched onValueChanged script autoupdate back to 5.2 style.
Causes script warning in 5.3 but improves backwards compatibility for now. --HG-- branch : develop_5.3pull/413/head
parent
b92c675dd3
commit
2a98dd3d0a
|
@ -579,7 +579,7 @@ namespace UnityEditor.UI
|
|||
inputFieldRT.anchorMin = Vector2.zero;
|
||||
inputFieldRT.anchorMax = Vector2.one;
|
||||
inputFieldRT.sizeDelta = Vector2.zero;
|
||||
Events.UnityEventTools.AddPersistentListener<string>(inputField.GetComponent<InputField>().onValueChanged, new UnityEngine.Events.UnityAction<string>(autoCompleteComboBox.OnValueChanged));
|
||||
Events.UnityEventTools.AddPersistentListener<string>(inputField.GetComponent<InputField>().onValueChange, new UnityEngine.Events.UnityAction<string>(autoCompleteComboBox.OnValueChanged));
|
||||
|
||||
//Setup Overlay
|
||||
var overlayRT = overlay.GetComponent<RectTransform>();
|
||||
|
@ -675,7 +675,7 @@ namespace UnityEditor.UI
|
|||
inputFieldRT.anchorMin = Vector2.zero;
|
||||
inputFieldRT.anchorMax = Vector2.one;
|
||||
inputFieldRT.sizeDelta = Vector2.zero;
|
||||
Events.UnityEventTools.AddPersistentListener<string>(inputField.GetComponent<InputField>().onValueChanged, new UnityEngine.Events.UnityAction<string>(comboBox.OnValueChanged));
|
||||
Events.UnityEventTools.AddPersistentListener<string>(inputField.GetComponent<InputField>().onValueChange, new UnityEngine.Events.UnityAction<string>(comboBox.OnValueChanged));
|
||||
|
||||
//Setup Overlay
|
||||
var overlayRT = overlay.GetComponent<RectTransform>();
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue