Apperently Unity doesn't like to set a bunch of objects to inactive. Whenever I loop through these child objects and use setActive to turn them off, Unity Crashes to the desktop.
Is this a bug or am I a victim of my own stupidity?
foreach (Transform level in levels.transform) {
level.gameObject.SetActive(false);
}
↧