How do merge 2 distinct array of object, and then sort it?

Without an idea of your knowledge of blueprint, guess a generic way could be:

  1. One of the characters or a third class is needed to have a reference to all actors with the data to merge.
  2. Iterate the references to append each to a new array or an existing one.
  3. swap the indexes using your favorite sorting algorithm.

And of course do all this inside a function.


If a third class is used there is also the option to get the array using an interface to avoid the include of the character class.


Here are some useful links:


Hope it helps. Let me know if you need anything specific.

1 Like