I writing simple runner game
I have Main Camera and have Image. I want to set this Image as Main Camera background.
I writing simple runner game
I have Main Camera and have Image. I want to set this Image as Main Camera background.
that other answer seems so out of date. I thought I'd share something newer. Just simply:
Now you have fit your image to your canvas. In addition to this, you will need to fit your canvas to your camera.
Edit: Do not forget to turn off Raycasting for both the image and the canvas!
STEPS:
For Users using URP Camera, setting Background is easy.
In URP we have two types of cameras Base And Overlay. Its the first option of Camera Component called RENDER TYPE