Objects disappear on resolution change

I have a strange problem where GameObjects disappear when I change the resolution in the Game tab. All but one stay on the screen. I create the objects through a script and all of them appear when the resolution is 800x600. As soon as I try another resolution though, they go away besides one of them (if I change back to 800x600 they come back); however, if I switch back to Scene view, they are clearly there.


800x600 Game View: Imgur: The magic of the Internet

16:9 Game View: Imgur: The magic of the Internet

16:9 Scene View: Imgur: The magic of the Internet

This is how I create them (Enemy_Orange3):

public GameObject enemyPrefab;

void Start () {
	// Spawn each enemy at a Position on screen
	foreach(Transform child in transform) 
		GameObject enemy = Instantiate(enemyPrefab, child.transform.position, Quaternion.identity) as GameObject;
		enemy.transform.SetParent(child.transform, true);
		Debug.Log("Spawning enemy: " + enemyPrefab.name);

If you look on the left side, Enemy_Orange3 (Clone) is created and clearly there. Why do they disappear?

Never mind, it was a stupid mistake. Some of my prefabs for the enemy ship ended up having a z axis that was lower than the camera’s z axis. Camera is at -10 and the prefabs were at -90 for some reason (doesn’t explain why they showed up on 800x600 resolution though).

Set them all higher than the camera and they don’t disappear anymore.