Hi, since UE 5.2 preview, there is a problem with the SpinBox Widget component.
The GetValue pure function and Value variable is not updated when the value changes.
As you can see, the print in the tick event will only show the initial value of the SpinBox and never reflect the actual value (when scrolled with mouse or when typed with keyboard and pressing enter)
UE5.1.1 this still works. I haven’t got a project currently in 5.2 but I see massive changes to the SpinBox.cpp file. There is a lot of b*llshit going on between the UMG and Slate widgets in how values are set and retrieved, often resulting in loss of data, incorrect values or values being stored in multiple variables.
I’ll add this to my list of largely ignored Slate synchronisation issues so we can perhaps motivate EPIC to get a new department for UI development . They can’t stop breaking things it is ridiculous and must be said. They simply don’t test their changes it’s the only explanation.
I think I remember seeing a commit on a Spinbox file saying that the fix was tested against Lyra and UEFN, maybe tested against a ModelView widget and not a vanilla one.
Tried looking for other ways but it seems the best solution without editing the engine itself is yours, thanks for the trick !
Feels like I’m breaking the most basic programming rules with this “On Value change → Set Value” thing x)