Answers for "remove empty values from array unity"

0

remove empty values from array unity

GameObject[] gameObjectArray = new GameObject[] { new GameObject(), new GameObject(), new GameObject() }; // example GameObject Array List<GameObject> gameObjectList = new List<GameObject>(gameObjectArray); gameObjectList .RemoveAll(x => x == null); gameObjectArray = gameObjectList .ToArray();
Posted by: Guest on April-23-2021

Code answers related to "remove empty values from array unity"

Browse Popular Code Answers by Language