SpriteRenderer SRPBatcher not working

SpriteRenderer doesn’t work SRPBatcher on Unity 6000.0.32f1.
The shader used the URP built-in basic 2D Unlit Shader.

In addition, in Unity 6000.0.30f1, SRPBatcher works fine in the editor, but it doesn’t work when tested on a real Android device.

SpriteRenderer SRPBatcher function is not normal. Unity development team wants our developers to fix it clearly so that they don’t suffer from this problem.

When you are ready to move beyond empty terms such as …

and

… then perhaps you will have a chance to get to the bottom of the problem and have a chance to fix it or work around it.

By debugging you can find out exactly what your program is doing so you can fix it.

Use the above techniques to get the information you need in order to reason about what the problem is.

You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.

Once you understand what the problem is, you may begin to reason about a solution to the problem.

Remember with Unity the code is only a tiny fraction of the problem space. Everything asset- and scene- wise must also be set up correctly to match the associated code and its assumptions.

This can be a helpful template to avoid making empty reports of “doesn’t work”:

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, log output, variable values, and especially any errors you see
  • links to actual Unity3D documentation you used to cross-check your work (CRITICAL!!!)

The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven’t put effort into finding the documentation, why should we bother putting effort into replying?

If you post code, only post the relevant code and always use the format button above. Do not post photographs of code.

I will give you high marks for being consistent in your usefulness however:

Please do let us know when you’re ready to work seriously on the problem and do a little bit of debugging to get around it.

Could you please report this bug from within the Unity Editor so our Customer QA team can take a look? Make sure to attach a reproduction project with steps to reproduce if possible.

You can report a bug in the Editor by navigating to Help → Report a Bug…

1 Like