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"

Blueprint Array - Set - reference or value?

When I set my "Chunks to Remove" array as I am, does this copy my "Loaded Chunk IDS" array or make my "Chunks to Remove" array a reference to my "Loaded Chunk IDS" array?

alt text

Product Version: Not Selected
Tags:
bp_help.png (28.0 kB)
more ▼

asked Sep 23 '14 at 12:31 AM in Blueprint Scripting

avatar image

MJ_01
822 38 39 241

avatar image Shadowriver Sep 23 '14 at 12:57 AM

Why don't you check for yourself? ;] if "chunk to Remove changes will appear in "Loaded Chunk IDS" it means it's a refrence

avatar image MJ_01 Sep 23 '14 at 01:30 AM

I was hoping I wouldn't have to waste the time doing so when I got back to working on it. The documentation says nothing about it. As far I can tell, there is no way to copy an array other than looping through it. If it works similar to a c++ array, then I would expect that "Chunks to Remove" is a reference variable.

avatar image Shadowriver Sep 23 '14 at 01:51 AM

In C++ it does not work like that, as you can decide whatever variable is a pointer/refrence (TArray*) or container (TArray). One of complements from C++ opposition in this community is that you need to learn about that... but as you can see sometimes it's very useful :p

You could try workaround this with "Append Array" node or some other array operation nodes

avatar image MJ_01 Sep 23 '14 at 02:21 AM

You are right. I'm getting my C# and C++ mixed up. I did the testing and it does work the way I want it to.

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

1 answer: sort voted first

For those interested, this method does copy the array.

more ▼

answered Sep 23 '14 at 02:22 AM

avatar image

MJ_01
822 38 39 241

(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