If a variable has been set to a default value and has a declared value range, it will ignore the value range and print the set value.The tooltip text is misleading or out of date as it gives the impression that the printed value should be clamped to the max value in the range.

This issue was reported in 4.19.2 (CL- 4033788) and reproduced in 4.18.3 (CL- 3832480), 4.20 Preview 5 (CL- 4173640), and Main 4.21 (CL- 4179850)

Steps to Reproduce
  1. Open the UE4 Editor
  2. Create an Actor and add an Integer variable named Test
  3. Set the Value Range in the Details panel to 0 and 2.
  4. Drag a setter for Test and connect it to Event BeginPlay
  5. On the setter, set the value of Test to 5
  6. Connect the setter of Test to a Print String
  7. Attach a getter of Test to the 'In String' value
  8. Compile and drag a instance of the Actor to the Viewport

Results: The value 5 will be printed out

Expected: The printed value should be clamped to 2

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-61446 in the post.

Login to Vote

Affects Versions4.
CreatedJul 3, 2018
ResolvedJul 5, 2018
UpdatedJul 31, 2018