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

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:
    50
    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:
    43
    If you're having this, make sure you have added Unity.RenderPipelines.Core.Runtime assembly definition
     
    Last edited: Dec 11, 2021
  5. lacas8282

    lacas8282

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