Using a For Loop inside of a Blueprint Function or Function Library will always return index 0 when used in the Construction Script.
This was reported and tested in 4.19.2 (CL-4033788). This was reproduced in 4.20.2 (CL-4302132) and Main 4.21 (CL-4362844(
Results: Print shows: 0, 0, 0,0, 0, 0, 0, 0, 0, 0
Expected: Print shows: 10, 9, 8, 7 ,6 ,5 ,4 , 3, 2, 1, 0 and so on.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-64166 in the post.
0 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.19.2, 4.20.2, 4.21 |
Created | Sep 18, 2018 |
---|---|
Resolved | Sep 18, 2018 |
Updated | Sep 19, 2018 |