Some suggestions:
- If the “Add (to array)” node works in the simplest test scenario, then the problem is not the add node.
- It would be a normal situation if the GC Destroy List is emptied (or were empty) before a new item is added (both items in your test would get index 0).
- Deleting X on a foreach loop of an array misbehaves. You’d have to remove things end to first item by looping over index (array size - 1 to 0).
- array pointers are only valid until an item is added or removed from an array.
Seeing nothing obvious on the screenshots currently.
I wonder though, are you trying to implement garbage collector functionality besides the GC that is already working in the background on every UObject?