how to remove object from array in unity code example
Example: remove object from array unity
System.Collections.Generic.List<GameObject> list = new System.Collections.Generic.List<GameObject>(targets); list.Remove(targetObject); targets = list.ToArray();