Set UI Image to render below Gameobject [Resolved]

Hi, is there a way to render a IU image below a normal gameobject prefab?

I have been looking at the forum and web but no luck.

I’ve tried setting the renderer layer to my Backgroud, but an error pops out saying:

MissingComponentException: There is no 'Renderer' attached to the "BalloneFrame" game object, but a script is trying to access it.
You probably need to add a Renderer to the game object "BalloneFrame". Or your script needs to check if the component is attached before using it

My code looks like:

    public string renderLayer;
	public int orderLayer;
	
	void Start () {	
		CanvasRenderer renderer = gameObject.GetComponent<CanvasRenderer> ();
		renderer.renderer.sortingLayerName = renderLayer;
		renderer.renderer.sortingOrder = orderLayer;
	}

I’ve try also with the UI.Image component.

Can someone please point me in the right direction.

Thanks in advance.

Make sure the canvas is world space. Then arrange the canvas to be behind the GameObject in the scene view.