Arrays chosen through a Select node cannot be altered.
Note - This is also reproducible using any of these nodes instead of using 'Add':
[MikeB]: This should be part of some overarching attempt to handle array value vs. ref (there are a lot of other cases where this is a problem).
1. Open QA-Game
2. Create an actor class blueprint & open it
3. Add 2 Int Array variables named 'IntArray01' & 'IntArray02'
4. Add 3 Elements to each
5. Change the 3 values for 'IntArray01' to 1 , 1 , 1
6. Change the 3 values for 'IntArray02' to 2 , 2 , 2
7. In the Event Graph, create the bp from screenshot #01
8. Compile & save
9. PIE
Results: The array that is chosen by the Select node will not be altered (If the Select node is bypassed, this setup works correctly)
Expected: For the '100' value to be added to 'IntArray01'
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.7.6, 4.9 |
Created | Jun 3, 2015 |
---|---|
Resolved | Jan 27, 2017 |
Updated | Jul 14, 2021 |