SRP not enabled on build?

Trying to render a batch from the Hybrid Renderer V2 with SRP Batcher OFF. This is not supported.
Please turn SRP Batcher ON to use the Hybrid Renderer V2.

I get this error in my build of my game. I have it enabled in editor and it is working fine, I have also added ENABLE_HYBRID_RENDERER_V2 to the Player Scripting Defines in my windows build config

I have no idea how to fix this, I couldn’t find anything online.
Any help would be appreciated thanks

using URP 10.5.1

Hey, which render pipeline are you using?

7425665--908945--upload_2021-8-17_18-18-8.png

On HDRP the SRP Batcher setting is hidden, but enabled by default. You can verify that the setting is on by selecting the HD Render Pipeline asset you’re using, switching the inspector to debug mode, and the toggle should appear.

On URP, the setting is accessible in the Universal Render Pipeline Asset.

Since your problem affects builds only for some reason, you can also check the value of the setting at runtime using GraphicsSettings.useScriptableRenderPipelineBatching.

Note that you could be using a different Render Pipeline Asset in builds than in editor, because they can be switched automatically based on the selected quality level. Check your project settings to see what asset you’re using.

1 Like

Thanks for the reply, I am using URP.
I have SRP Batcher in the URP, I have also gone through each quality setting and manually put in the render pipeline in each quality but unfortunately I am still getting the error. I am checking GraphicsSettings.useScriptableRenderPipelineBatching and writing the value to some text in the build and its value is true, I have also tried manually setting it to true but am still getting the error

Hello
There is nothing activate on my ADD Override.
What can I do?

After I selected the default layout in the layout drop-down box in the upper right corner of Unity, it returned to normal. It was strange.