Destroying an array of SplineMeshComponents
I'm trying to destroy all the elements of an array of spline mesh components using a for loop to destroy each mesh but every time it enters the array, the editor crashes and tells me: Array index out of bounds : 16 from array of size 16(The size of the array will be changing at runtime so I can't create a static array). I appreciate any help on what is the proper way of doing this task. Note I have tried setting index to just the array's Num() without the -1. But this does not fix the issue either.
I found a solution which works really well:
answered Jan 04 '17 at 05:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here