# UE 5.2 Spinbox issue

**URL:** <https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, Widget\
**Created:** [May 24, 2023, 11:51am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964 "2023-05-24T11:51:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oksyd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oksyd](https://forums.unrealengine.com/u/Oksyd)\
**Post date:** [May 24, 2023, 11:51am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/1 "2023-05-24T11:51:38Z")

</div>

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.

Gif of the problem:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/b/7fbecfb14d058271518ee4f884d0df6b642ff0e7.gif)

Blueprint code:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/744802fa4b887538788b32f12d1d1a27387ec965.png)

Spinbox Details:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/3/223dd4c08eabb37352e3fcba943ecf82f95df518.png)

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)

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 26, 2023, 9:00am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/2 "2023-05-26T09:00:31Z")

</div>

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.

> [[Bugs bugs bugs] Slate widget synchronization](https://forums.unrealengine.com/t/bugs-bugs-bugs-slate-widget-synchronization/738172)  
> [EPIC, please stop breaking Slate and UMG in new releases.](https://forums.unrealengine.com/t/epic-please-stop-breaking-slate-and-umg-in-new-releases/1179127)

---

<div class="post-metadata">

**Author:** ![Sarlack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarlack/32/1194542_2.png) [@Sarlack](https://forums.unrealengine.com/u/Sarlack)\
**Post date:** [May 26, 2023, 10:16am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/3 "2023-05-26T10:16:05Z")

</div>

Yeah the SpinBox.cpp seemed to remove the value getting set by the slider. I had to add a SetValue off the slider for it to work.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/c/a3cbb13047ccce2ea565bead5a4a1fb9e1cd79e3.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/3/4e3c10be2b1be7fd8f1f5a554201e68dc5a5feef.jpeg)

---

<div class="post-metadata">

**Author:** ![Oksyd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oksyd](https://forums.unrealengine.com/u/Oksyd)\
**Post date:** [May 26, 2023, 9:02pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/4 "2023-05-26T21:02:43Z")

</div>

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. ☹

---

<div class="post-metadata">

**Author:** ![gchapeaux](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gchapeaux/32/708342_2.png) [@gchapeaux](https://forums.unrealengine.com/u/gchapeaux)\
**Post date:** [May 30, 2023, 4:04pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/5 "2023-05-30T16:04:18Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![Oksyd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oksyd](https://forums.unrealengine.com/u/Oksyd)\
**Post date:** [May 31, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/6 "2023-05-31T16:01:46Z")

</div>

@gchapeaux Clearly ☹

---

<div class="post-metadata">

**Author:** ![LeFxPete](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxPete](https://forums.unrealengine.com/u/LeFxPete)\
**Post date:** [June 6, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/7 "2023-06-06T15:55:34Z")

</div>

Just ran into the same issue aswell on 5.2.0 Release. Very frustrating for blueprint only projects.

---

<div class="post-metadata">

**Author:** ![Oksyd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oksyd](https://forums.unrealengine.com/u/Oksyd)\
**Post date:** [June 11, 2023, 2:56am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/8 "2023-06-11T02:56:34Z")

</div>

Hoping it will be fixed for the 5.2.1 🙃

---

<div class="post-metadata">

**Author:** ![zapan669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zapan669](https://forums.unrealengine.com/u/zapan669)\
**Post date:** [June 22, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/9 "2023-06-22T16:01:38Z")

</div>

I have the same problem, SpinBox is broken in 5.2

---

<div class="post-metadata">

**Author:** ![Sarlack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarlack/32/1194542_2.png) [@Sarlack](https://forums.unrealengine.com/u/Sarlack)\
**Post date:** [June 23, 2023, 12:45am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/10 "2023-06-23T00:45:26Z")

</div>

This is fixed in 5.2.1  
I tested and it worked for me

`UE-188074 SpinBox UMG Widget’s GetValue only returns the last value set directly via SetValue`

---

<div class="post-metadata">

**Author:** ![Oksyd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oksyd](https://forums.unrealengine.com/u/Oksyd)\
**Post date:** [June 26, 2023, 10:54pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/11 "2023-06-26T22:54:58Z")

</div>

yes, fixed 🙂 in 5.2.1

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 28, 2023, 4:57pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/12 "2023-06-28T16:57:41Z")

</div>

except they f\*cked up something else 🙂

> [[UE5.2, Bug report] Good job, you broke SetValue on the slider this time](https://forums.unrealengine.com/t/ue5-2-1-bug-report-good-job-you-broke-setvalue-on-the-slider-this-time/1213393)

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 29, 2023, 2:05pm UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/13 "2023-06-29T14:05:11Z")

</div>

And that 😕 what a joke

> [[UE5.2.1, Bug report] EditableTextBox broke further. GetText not returning set value.](https://forums.unrealengine.com/t/ue5-2-1-bug-report-editabletextbox-broke-further-gettext-not-returning-set-value/1213966)

---

<div class="post-metadata">

**Author:** ![JonathanArmstrong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanArmstrong](https://forums.unrealengine.com/u/JonathanArmstrong)\
**Post date:** [November 27, 2023, 5:52am UTC](https://forums.unrealengine.com/t/ue-5-2-spinbox-issue/1176964/14 "2023-11-27T05:52:52Z")

</div>

[5.2.1 Hotfix Released](https://forums.unrealengine.com/t/5-2-1-hotfix-released/1206307)

> UE-188074 SpinBox UMG Widget’s GetValue only returns the last value set directly via SetValue
