Search Unity

Question The name 'CommandBufferPool' does not exist in the current context

Discussion in 'Universal Render Pipeline' started by Deleted User, Jul 10, 2021.

  1. Deleted User

    Deleted User

    Guest

    Whenever I try to use a ScriptableRenderFeature I get the error:

    The name 'CommandBufferPool' does not exist in the current context


    I've checked the docs and it looks like it should be under UnityEngine.Rendering but it's just not there for me even though I have both the Core RP and URP 11.0 packages installed. Does anyone know how to fix this?
     
  2. Deleted User

    Deleted User

    Guest

  3. Epiplon

    Epiplon

    Joined:
    Jun 17, 2013
    Posts:
    52
    It's a bug with Assembly Definitions, I tried it here with two different projects, both running URP 7.7
     
    Last edited: Jul 25, 2021
  4. spajus

    spajus

    Joined:
    Jun 10, 2015
    Posts:
    47
    If you're having this, make sure you have added Unity.RenderPipelines.Core.Runtime assembly definition
     
    Last edited: Dec 11, 2021
    FuDaNing, Tete8008, lacas8282 and 4 others like this.
  5. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    139
    how to do that?