mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-05 12:52:24 +08:00
add AddListener helper for IL2CPP, cleanup some unity extensions
This commit is contained in:
@ -33,11 +33,7 @@ namespace UnityExplorer.UI.Shared
|
||||
this.sliderScroller = sliderScroller;
|
||||
this.inputField = inputField;
|
||||
|
||||
#if MONO
|
||||
inputField.onValueChanged.AddListener(OnTextChanged);
|
||||
#else
|
||||
inputField.onValueChanged.AddListener(new Action<string>(OnTextChanged));
|
||||
#endif
|
||||
|
||||
inputRect = inputField.GetComponent<RectTransform>();
|
||||
layoutElement = inputField.gameObject.AddComponent<LayoutElement>();
|
||||
|
Reference in New Issue
Block a user