I have an array of Actors
It’s defined as follows:
I fill the array by calling this multiple times
But when I want to Destroy the actors and clear the array back down to a zero length array I call this: (EDIT: I properly linked the Array Element to the Remove - but still having stuck items in array)
And I’m getting weird results :
- sometimes it doesn’t Remove or Destroy Actor on BP_Coins I have put into the array
- sometimes I get errors on accessing the actor (BP_Coins) when doing a For Each loop thru the array…
Maybe there is a way to just reset coinsUsedArray to be empty and zero length rather than iterate through it and doing “Remove” on each item?