Search Unity

Decal Projector - RenderTexture.Create failed

Discussion in 'Universal Render Pipeline' started by samochreno, May 14, 2022.

  1. samochreno

    samochreno

    Joined:
    Feb 4, 2021
    Posts:
    14
    I'm on Unity 2021.2.18f1 and URP 12.1.6 and I'm getting these logs when using the decal projector (attachment). Is there any way I can fix this issue? upload_2022-5-14_16-23-42.png upload_2022-5-14_16-23-36.png
     
    lacas8282 likes this.
  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    I have the same error constantly being spammed to the console, although in a scene without decals. But interestingly when i open a single other scene with decals, no errors are printed.
     
    Last edited: May 17, 2022
    lacas8282 likes this.
  3. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    Still an issue. It would be helpful to know why this is triggered (and how to prevent it)
     
  4. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    Or if this is a known issue and when to expect a fix
     
  5. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    My current guess is that this happens when URP is added to an existing standard pipeline project (converted into by assigning the pipeline assets to the corresponding project settings), as that's what i did in the projects where this occurs.
    But i still don't know, if that's the case, what step i might be missing.

    Edit: the error goes away if i set 'Rendering Path' to Deferred, which seems to correspond to these lines:
    https://github.com/Unity-Technologi...versal/Runtime/UniversalRenderer.cs#L700-L714
    which is not my intention though..

    Edit: i think i found the error-source: it's the Decal render feature setting 'automatic', setting it to screenspace seems correct to me and fixes it.
     
    Last edited: Jun 28, 2022
    UtopianX8 and Bankler like this.
  6. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    138
    Any news on this?
     
  7. Eniotnacram11

    Eniotnacram11

    Joined:
    Jan 6, 2019
    Posts:
    9
    Please any news I got the exact same thing, brand new project URP 2022.3.22f1