Camera in GameView and Build shows nothing

Hi there,

I have that problem with the camera in Game View and also the build version where it shows no image. In Scene View and the camera preview inside Scene View everything is fine.

If I am in Game View and change the Game View’s resolution to another resolution and back to the previous resolution, then suddenly the camera shows a picture.

The picture is projected to a target texture which is the input for a raw image.

You can see a gif of the problem here:

Camera_bug.gif

Seems something to be with the Sprites-Default-Material that is used in the Raw Image component. If there is no material is used, the image shows something.

Can somebody please help me?

7941832--1015969--Camera_bug.gif

Seems that removing the material from the raw image is a solution:

7942852--1016173--upload_2022-3-5_13-26-38.png

Now, it works in Game View in editor and also in build.