DOTS_INSTANCING_ON error

Hi
I wrote a custom Sprite Lit shadergraph to use with ECS and i am getting this error. Anyone know if it can be fixed?

A BatchDrawCommand is using the pass “Sprite Lit” from the shader “Shader Graphs/CustomUVSprites” which does not define a DOTS_INSTANCING_ON variant.
This is not supported when rendering with a BatchRendererGroup (or Entities Graphics). MaterialID: 4 (“CustomUVSprites”), MeshID: 2 (“Quad”), BatchID: 3.

1 Like

I have the same issue. bump

Have you defined “#pragma multi_compile _ DOTS_INSTANCING_ON” in your shader?