Hello! I am trying to figure out the best process for swapping “items” (BP_Actor) in an array. I have an array were items are inserted at an index location. What I want to do is perform a “check” at that index location to see if there is already something there, and if so, remove that item at that index location and replace it with the new item. So should I be using “Is Valid” before the insert and then if Is Valid is true, remove index at location?
In addition to the above:
I’ve noticed that if I have an empty array, and I use “Insert” to insert an item at a certain index location. (so now the only item in the array is at index 4) If I attempt to “remove” the item at that index, it only moves that item’s index down by one… So then, the item at index location 4 then moves to index location 3. Do I need to first insert that item to the other array and then delete the actor?
Any help is appreciated!
Matt