Create a semitransparent panel behind an ui element and behind one gameobject but in front of anothe

I have a 2D scene. I want to create a semitransparent panel behind an ui text element and behind one gameobject but in front of another. At the moment I can only get the panel to be behind the text-ui element by putting it in the canvas. How can I also put it behind the selected gameobjects? I tried to change to position i 3D view but didnt manage to get it to work

Sorry if im missing some details but I am new to unity.

If you are using Screen Space - Overlay mode for your canvas, it is not possible to put any UI elements behind any game world objects. The UI is simply drawn on top of the screen after rendering the rest of the game and that’s that.

If you want UI elements behind game world elements you’ll have to use one of the other Canvas rendering modes such as Screen Space - Camera or World Space.

Hopefully I haven’t misunderstood your question.