Uniform Ranged for integers maximum is exclusive but should be inclusive or at least say otherwise

Steps to Reproduce

Project has been attached for simple repro sample.

1. Download and open the attached project.
2. Navigate to NiagaraBug2 Folder->VFX Shapes
3.Navigate to Particle Spawn-> Set Variables.
4. Observe the Minimum and Maximum numbers set in the SubImagIndex.

Result: sprites will only display the first image in a sub uv texture, even though minimum is 0 and maximum is 1. That is, it will never reach 1

Expected: Sprites should sometimes display the first (index 0) and sometimes the 2nd (index 1) image of the sub uv.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-85959 in the post.

Login to Vote

ComponentRendering - Niagara
Affects Versions4.24
Target Fix4.26
CreatedDec 17, 2019
ResolvedFeb 28, 2020
UpdatedMar 25, 2020