Answer the question
In order to leave comments, you need to log in
How to remove an object from an array in Unity 2D?
I have a list with three objects. They are destroyed, but empty spaces remain in the array. Please help, or remove cells from the array, thus reducing its length, or instead of ARRAY.Lenth, find out the number of only filled elements.
PS For me, in Unity, arrays and lists are the same, in this context I mean that it is set something like this: public GameObject[] enemies;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question