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: http://i.imgur.com/vAjFSQ5.png?1
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.
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:
Create new blueprint
Add a string array variable
Compile, create 3 elements in array
Set all 3 elements to 1
Off of event begin play, create a “set array elem” node, set array to string array, index to 1, item to 0
Create a print string node
Get string array, do a “get array” node with an index of 1
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.