Hello everyone,
is it possible to have an on-value-changed event or something for the text field? I am currently struggling to synchronize the input with my validator. I've a status value for each input which decides if an input is valid or not. Each time the submit button gets clicked the inputs are validating. Only if all inputs are validated the submit button will continue with the process. The only issue I've now since the way to fetch text data is a callback the status value isn't synchronized with the current status value, it's always one step behind. To avoid this problem you have to click twice on the button which is really annoying. It'd be a huge help if anyone knows a solution.
Here's a small demonstration to visualize the problem:
As you can see above the inputs are invalid.
So far so good
By clicking on the submit button the inputs got validated again and this time it passes the validation since the format is correct (as you can see no errors are shown), but a feedback to the player is missing which u can see in the screenshot below, because the validation status isn't synchronized.
Clicking the button again the validation process happens again but since it uses the previous validation status, which is true, it doesn't matter now if any errors occurs again or not, as long the previous status is true.
I hope you could follow along
Here's the code snippet of my method: