Game objects created in scene but not game.

Hello, I followed a tutorial where a game object was created at 3 locations. Each location was selected randomly after some time interval. My problem is that after the time interval the game object does appear in the scene view but not in the game view.
Please help.
This is the code I am using.

public Transform prefab;
private float timer = 0;
private bool spawning;
private Transform loc;
void Start () {
	GameEventManager.GameOver += GameOver;

void Update()
	if (!spawning) {

		timer += Time.deltaTime; 
		print ("Spawn");

void Spawn ()
	spawning = true;
	int randompick = Random.Range (1, 3);
	Transform loc; 
	if (randompick == 1) {

		transform.Translate(5f, 2f, 0f);
		Instantiate (prefab, transform.position, Quaternion.identity);
	if (randompick == 2) {
		transform.Translate(10f , 2f, 0f);
		Instantiate(prefab, transform.position, Quaternion.identity);

	if (randompick == 3) {

		transform.Translate(15f , 2f, 0f);
		Instantiate (prefab, transform.position, Quaternion.identity);


	timer = 0;
	spawning = false;



A few possibilities

The renderer is turned off on the new GameObjects

The new GameObject is outside of the camera range

The new GameObject is in an unlit area of the scene

If this is 2D- make sure the child object has same Z value as parent.