using "On Value Changed" yields old value
I have an Input Field and am tryign to detect the value changed to make a button become clickable depending on the text value.
Adding functions to OnValueChanged list from the Input Field, both checking the Argument from Value changed and checking Value in the Text field yields the old value (e.g. if I type 1 on my keyboard it shows me "", if I type 2 after that it shows me "1").
Is this an intended feature and how can I get the changed value after it has actually changed?
Answer by Hellium · Jan 20, 2018 at 01:11 PM
Can't you simply call inputfield.text
in order to get the new value instead of using the parameter of the callback?
Your answer
Follow this Question
Related Questions
How to use/implement `IMoveHandler`? 2 Answers
How to get the event of a BatteryStatus change? 3 Answers
Delegate signature for activeSceneChanged handler 1 Answer
How to best organize bool variables and code modularity in general? 4 Answers
Is there a way to share common OnMouseOver/Exit...etc events? 0 Answers