Sprite in front of background but behindbuttons issue.

Hello. I want to make dynamic background so I am creating sprites (clouds) at random heights and camera goes to the right so it looks like clouds are going behind menu. But there is one problem. That clouds are in fron of UI elements such as buttons. And i don’t know how to make them to be in front of background image on canvas and behind buttons. Someone can help me?

124273-capture.png

This cloud i want to be behind that button.

124274-capture2.png

This is my scene elements hierarchy. Cloud is sprite and others are UI elements.

If your game doesn’t require camera movement, I’d go against your current technique and move the cloud instead.It is a lot easier to manage in the future and you can have different moving speed clouds.

Just make the cloud a non canvas sprite, give it a rigidbody and translate it. It will be rendered behind canvas items as default.