title: Spawn prefab in front of UI Image
body: <p>I spawn the prefab in a gameobject and that gameobject is a child of UI Image what I'm trying to accomplish is display the prefab infront of a UI Image. I've tried making z position of gameobject to negative but nothing happens. I can't place the sorting layer of UI Image cause it doesn't exist. What should I do? Is this even possible? </p>
  
  <p><a href="https://i.stack.imgur.com/HX2DE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HX2DE.png" alt="enter image description here"></a></p>
  
  <p><strong>Update</strong></p>
  
  <p>Tried adding second camera. I made gameobject layer to SecondCam. Change settings of second camera to depth only and it's culling mask to SecondCam only then it's layer to SecondCam also. Change settings of main camera culling mask to everything except SecondCam. But this doesn't work, Have I done something wrong?
  <a href="https://i.stack.imgur.com/Zeal5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zeal5.png" alt="enter image description here"></a></p>
  
  <p><strong>Second Camera settings</strong>
  <a href="https://i.stack.imgur.com/W1h9y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W1h9y.png" alt="enter image description here"></a></p>
  
  <p><strong>Main Camera settings</strong>
  <a href="https://i.stack.imgur.com/TaBFf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TaBFf.png" alt="enter image description here"></a></p>