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"

Unable to modify array from output of function

I have a function that takes an input of an enum, switches from that enum to return one of two string arrays. Outside of the function I cannot modify the returned array in any way, not via "get" "set array elem", "set by ref","add" or "add unique". There appears to be no way to modify the original, selected array outside of the function once it has been returned.

Is this intended? Am I missing something here? It doesn't seem particularly useful to be able to return an array if it is strictly read-only.

Here is the switch function returning a string array: alt text

Here is the function being called, and attempting to add to the returned array: alt text

Here is in game, after adding text to the text box, and clicking the +LTRS button alt text

And here is after the Print Letters button is pressed: alt text

Product Version: UE 4.19
Tags:
snip1.jpg (50.9 kB)
snip2.jpg (54.6 kB)
snip3.jpg (25.1 kB)
snip4.jpg (24.8 kB)
more ▼

asked Feb 09 '19 at 09:38 PM in Blueprint Scripting

avatar image

tsteenrod
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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