x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

set array elem

Branch: 'Binary' build from the 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 the number zero), the array position will be deleted. I am working with strings, and Id like to have a 0 (read zero, the 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 the right. start game

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

Product Version: UE 4.8
Tags:
more ▼

asked Jul 15 '15 at 10:31 PM in Bug Reports

avatar image

t0b4cc0
61 13 17 20

avatar image Ben Halliday STAFF Jul 16 '15 at 03:23 PM

Hi t0b4cc0,

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 the report!

avatar image Adam Davis STAFF Jul 16 '15 at 04:47 PM

Hi t0b4cc0,

Does this occur in a clean, blank project with no additional content? How are you sizing your array? These are the steps I tried on my end and it was able to read the 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 the string array, do a "get array" node with an index of 1

  8. Plug the return value into the "in string" node

  9. Compile

  10. Press PIE

alt text

printstring.png (176.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi t0b4cc0,

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 the requested information.

more ▼

answered Jul 21 '15 at 02:01 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question