Description

Arrays chosen through a Select node cannot be altered.

Note - This is also reproducible using any of these nodes instead of using 'Add':

  • Add Unique
  • Set Array Elem
  • Insert
Steps to Reproduce

[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'

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.7.64.9
CreatedJun 3, 2015
ResolvedJan 27, 2017
UpdatedJul 14, 2021
View Jira Issue