Object not rendering in game but is in editor

Hi,
For some reason the image of the items i collect is not showing up on the ui when i collect it. Ivé not changed any scrits as far as i can tell and now its not working. It shows up in the editor but not in the game. Another thing is when i select the object it is visible again. So it would appear the item is there, but its not visible

here are some screenshots:

object in editor view:

object in game:

object after selecting it:

im using unity 2021.15f1

Edit: No need to respond to this. It just happened that the z position was not at zero so it was not rendering on the camera. So just check that if you change your camera settings.