Attempting to get Camera relative temporary RenderTexture (width || height <= 0) via a CommandBuffer

My project hasn’t encountered this before, I haven’t changed anything yet today when hitting play in my project this error fires, and nothing renders to the screen. Has anyone else encountered this or can shed some light on the situation?

1 Like

Did you figure it

Did you find the solution? I have the same issue

Hello.
I had this problem due to variables:

static readonly int width = Screen.width;
static readonly int height = Screen.height;

Getting the screen resolution data in the function itself solves the problem.
However, this does not solve the problem of having to write via “readonly”.
(Unity 2019.4.18f1 LTS)

Just delete 2D render pipeline and create again.

And how do you suggest doing that? details?

FYI: not using 2D pipeline at all… using default UniversalRP-HighQuality for 3D.

Like the above.

I closed the project. Went into my project folder, found the ‘Library’ folder and deleted the ‘Script Assemblies’ folder inside it. Unity loaded up without errors.

You probably only need to delete scripts in the ‘Scripts Assemblies’ folder with ‘render pipeline’ in the name though. But no harm done (at least for me) from just deleting the whole thing.

Of course, make a back up before you do anything like this!

9 Likes

Deleting the contents of the Script Assemblies folder also worked for me. Thanks MichaelEGA

2 Likes

Deleting the contents of the Script Assemblies folder worked for me as well