How to hide elements behind the camera?

Hello there!
I am really tired to find the solving of my problem. Tried everything i could.


I have changing background behind my scene with design resolution 1280x720, and i dont want it to be shown to player, when he plays.
Canvas layer is UI_2D now. I tried different combinations of canvas and camera layers, but nothing helped(
I’m so desperate that I just want to put black rectangles around the edges. Please help

You can use the Mask Component:
https://docs.cocos.com/creator/manual/en/ui-system/components/editor/mask.html?h=mask

1 Like

Thank you very much!