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"

Create a copy of and object in blueprint


I have an array of component's references, and i need to do a copy of each, but if I tyr to make a create by class i lost the data of the class because it's reset to its default values.

alt text

I really need a new instance of this object in this loop, but I didn't find any tools to do that in Blueprint, how can I duplicate this array with sames objects but new references.

Thanks in advance

Product Version: UE 4.9
aaa.png (174.3 kB)
more ▼

asked Dec 02 '15 at 11:06 AM in Using UE4

avatar image

26 1 2 4

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

1 answer: sort voted first

As far as I understand the easiest way to do this is to create a new temporary variable of type Spell Component and assign it to the current array reference. That way you create only one Spell Component instance but use it for all elements in the array.

If you need to copy the whole array you could write a separate function which iterates all array elements and adds them to a new local array and then returns the array thus creating new references.

more ▼

answered Oct 22 '17 at 10:38 PM

avatar image

154 2 3 7

(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