Z
Z
Zimaell2020-12-29 18:13:11
Unity
Zimaell, 2020-12-29 18:13:11

How to replace an Image with a SpriteRenderer with the same dimensions?

I made a toy, all prefabs with SpriteRenderer, I already built everything and wanted to add a background, I made a panel and gave it a picture, how it turned out to be on top of all prefabs, they advised me to redo the prefabs and replace all SpriteRenderer with Image, then yes, the prefabs are already on top of the background, that's all floated and needs to be redone...
Therefore, I decided to make a background SpriteRenderer so as not to redo everything else, though stretching it just like the panel does not work, advise what can be done in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-12-29
@Zimaell

Make not an overlay in the canvas, but a render to the camera and set the appropriate depth.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question