Create a copy of and object in blueprint

Hi,

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.

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

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.