Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

Discussion in 'Editor & General Support' started by Blueknight1758, Apr 24, 2019.

  1. Blueknight1758

    Blueknight1758

    Joined:
    Jul 27, 2013
    Posts:
    13
    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?
     
    alexandrebdet likes this.
  2. KoolGamez

    KoolGamez

    Joined:
    Apr 11, 2020
    Posts:
    29
    Did you figure it
    Did you find the solution? I have the same issue
     
  3. AlexandrBuryakov

    AlexandrBuryakov

    Joined:
    May 30, 2018
    Posts:
    31
    Hello.
    I had this problem due to variables:
    Code (CSharp):
    1. static readonly int width = Screen.width;
    2. 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)
     
    Last edited: Feb 7, 2021
  4. duartejuca

    duartejuca

    Joined:
    Aug 23, 2018
    Posts:
    11
    Just delete 2D render pipeline and create again.
     
  5. Vaupell

    Vaupell

    Joined:
    Dec 2, 2013
    Posts:
    301
    And how do you suggest doing that? details?

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

    MichaelEGA

    Joined:
    Oct 11, 2019
    Posts:
    34
    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!
     
    Last edited: Jul 8, 2022
    AlenLap, Gurtha, Lorrak and 6 others like this.
  7. WoodsmanThePeasant

    WoodsmanThePeasant

    Joined:
    Jun 2, 2013
    Posts:
    5
    Deleting the contents of the Script Assemblies folder also worked for me. Thanks MichaelEGA
     
    MichaelEGA and Vaupell like this.
  8. the_aia

    the_aia

    Joined:
    Feb 8, 2020
    Posts:
    7
    Deleting the contents of the Script Assemblies folder worked for me as well