remove object from array 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();
System.Collections.Generic.List<GameObject> list = new System.Collections.Generic.List<GameObject>(targets); list.Remove(targetObject); targets = list.ToArray();