InvokeRepeating problem

Hello,
I’m beginer in Unity and i have a problem with the invokeReapeating tool. I try to recreate a image (UI) with BoxCollider and Rigidbody but the clone image is visible in the hierachy and invisible in the game. This my programme : .thanks for the help !

using UnityEngine;
using UnityEngine.UI;

public class Generate : MonoBehaviour
{
	public Image Obstacle;
	// Use this for initialization
	void Start()
	{
		InvokeRepeating("CreateObstacle", 1f, 1.5f);
	}
	
	void CreateObstacle()
	{
		Instantiate(Obstacle);
	}
}

Switch over to the scene tab while the game is running, then double click on the clone in the hierarchy. That will show you where the object is being created in the scene. Where is it relative to the camera? It’s most likely not within the the camera’s view. Generally when you instantiate an object you have to specify a position to put it at.