Search Unity

SRP: Node is not compatible with SRP batcher

Discussion in 'Universal Render Pipeline' started by Unusual-Cadence, May 16, 2020.

  1. Unusual-Cadence

    Unusual-Cadence

    Joined:
    Aug 12, 2015
    Posts:
    42
    Hello! I'm trying to figure out why some of my meshes are coming up in the Frame Debugger as "SRP Batch", and some are showing up as "Draw Mesh <mesh name>" with the error "SRP: Node is not compatible with SRP batcher", even when using the exact same material! I can't find much info on this error at all, so hopefully someone can explain what would cause this particular issue.

    The meshes that don't seem to want to be SRP batched are completely procedurally generated at runtime from scratch, which likely has something to do with it. Is there anything that I need to do to after running SetVetices/Triangles/UVs etc to get it to go through the SRP Batching path? Any additional flags need setting on the filter or renderer?

    Edit: Whoops, turns out it was a rogue MaterialPropertyBlock that was breaking the batching!
     
    Last edited: May 16, 2020
    forestrf likes this.