Set array elem

Branch: ‘Binary’ build from Unreal Launcher

Build version: 4.8.1-2591939+++depot+UE4-Releases+4.8

Bug: Blueprints - “Set array elem” node. If array elem is set to 0 (read number zero), array position will be deleted. I am working with strings, and Id like to have a 0 (read zero, number) as string.

Screenshots/Link to video: a “make screenshot of comment box feature would be nice” but here we go:

Repro Steps: look picture. copy, set values of array as shown on right. start game

issue occurring 100% of time. but if i create a string variable and put default value 0 (read zero) and use that as input for set array elem, it works just fine.

Hi ,

I’ve assigned someone to look into this for you, and they’ll post here if they require any additional information from you. Thanks for report!

Hi ,

Does this occur in a clean, blank project with no additional content?
How are you sizing your array? These are steps I tried on my end and it was able to read change without any problems:

  1. Create new blueprint
  2. Add a string array variable
  3. Compile, create 3 elements in array
  4. Set all 3 elements to 1
  5. Off of event begin play, create a “set array elem” node, set array to string array, index to 1, item to 0
  6. Create a print string node
  7. Get string array, do a “get array” node with an index of 1
  8. Plug return value into the “in string” node
  9. Compile
  10. Press PIE

Hi ,

We have not heard from you in several days. I am marking this thread as answered for tracking purposes. If you are still experiencing this error, please comment with requested information.