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.3
pull/413/head
Simon (darkside) Jackson 2015-11-24 09:53:03 +00:00
parent b92c675dd3
commit 2a98dd3d0a
2 changed files with 2 additions and 2 deletions

View File

@ -579,7 +579,7 @@ namespace UnityEditor.UI
inputFieldRT.anchorMin = Vector2.zero; inputFieldRT.anchorMin = Vector2.zero;
inputFieldRT.anchorMax = Vector2.one; inputFieldRT.anchorMax = Vector2.one;
inputFieldRT.sizeDelta = Vector2.zero; 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 //Setup Overlay
var overlayRT = overlay.GetComponent<RectTransform>(); var overlayRT = overlay.GetComponent<RectTransform>();
@ -675,7 +675,7 @@ namespace UnityEditor.UI
inputFieldRT.anchorMin = Vector2.zero; inputFieldRT.anchorMin = Vector2.zero;
inputFieldRT.anchorMax = Vector2.one; inputFieldRT.anchorMax = Vector2.one;
inputFieldRT.sizeDelta = Vector2.zero; 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 //Setup Overlay
var overlayRT = overlay.GetComponent<RectTransform>(); var overlayRT = overlay.GetComponent<RectTransform>();

Binary file not shown.