Description

When re-arranging an array that has been added to a character blueprint, the array adds an empty value to element [0] and leaves it in a broken state. I tested this using the Level blueprint as well but it did not break the array and functioned as intended. Attached is a sample project where it is already broken but repro has to be from scratch.

Steps to Reproduce
  1. Create a First Person or Third Person Project
  2. Go to the Charatcer Blueprint (ThirdPersonCharacter or FirstPersonCharacter)
  3. Create a string variable, change its type to an array, and set it to Instance Editable
  4. Add three array elements to the array
  5. Place a getter of your string array and attach two Get (a ref) nodes to it
  6. Set one GET to 0 and the other to 1
  7. Place an Append node and attach the Get nodes to A and B
  8. Add a Print String to the return value of the Append
  9. Add a X Key event and attach the Print String to the Pressed.
  10. Save, compile, and test the setup in PIE and notice the results
  11. Go back to the Character blueprint, click on the string array and move the order of elements.
  12. Save, compile, and test again in PIE

Results: The string array adds an empty value to [0] and displays [1]. The array elements aren't the same as what you see when you mouse over the string array

Expected: The string array displays the reorganized values

Have Comments or More Details?

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

2
Login to Vote

Fixed
ComponentTools
Affects Versions4.184.19
Target Fix4.18.2
Fix Commit3778547
CreatedNov 14, 2017
ResolvedNov 29, 2017
UpdatedApr 27, 2018
View Jira Issue