Inside the TwoWayBindingExample the wrong name is assigned to the character button when Controls is first enabled.
This can be due to ContextDataUpdater assigning invalid this.Data during OnEnable.
A possible solution is to wait to assign the value at the end of frame so that this.Data can be updated first.
Comments (5)
-
reporter -
repo owner @Keith Leung
Thanks a lot for your report! I will check it out now. If you are interested in receiving a fix before the next version is released, please send me your mail address.
-
repo owner After investigation I decided to add a flag
NoInitialUpdateto theContextDataUpdater, so it’s possible to skip the initial updating of the context by the behaviour. This allows the user to influence the data priority. -
reporter That’s awesome! Thanks for resolving this so quickly.
-
repo owner - changed status to resolved
Fixed in 1.24
- Log in to comment
Repro steps:
1) Run the TwoWayBindingExample sample project.
2) Click on “John”
3) The “John” button is now renamed to “A name”
I expected the “John” button isn’t renamed until I changed it in the input field.