Search Issue Tracker

Won't Fix

Votes

0

Found in

2021.3.38f1

2022.3.28f1

Issue ID

UUM-72240

Regression

No

Position Node with Object Space has a wrong value when there are multiple active GameObjects with the same shader

--

-

Reproduction steps:
1. Open the attached "ReproProj" project
2. Open the "Assets/DemoScene" scene
3. Observe the three squares in the Scene view

Expected Result: All three squares have 4 colors
Actual Result: Only the square at the (0,0) position has 4 colors

Reproducible with: 2021.3.38f1, 2022.3.28f1, 2023.1.0a10
Not reproducible with: 6000.0.1f1
Fixed in: 2023.1.0a11

Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested

Note: Sometimes, upon the first launch of the project on a "Not reproducible with" version, the shaders still look as they do in "Reproducible with" versions, however entering the Play mode fixes it. This is more prominent in newer versions

  1. Resolution Note:

    This is due to the lack of SRP Batching support in Unity Versions 2022.3 and below, uses dynamic batching instead. Dynamic batching combines the sprites into a single batch / draw call which doesn't preserve the transformation data.

    If transformation data is needed in your use case, it will be required to upgrade to Unity 6000.0 or later to have the SRP batcher functionality which will not exhibit this behaviour anymore.

    Attaching the relevant documentation for reference:

    https://docs.unity3d.com/6000.0/Documentation/Manual/SRPBatcher.html

    https://docs.unity3d.com/6000.0/Documentation/Manual/DrawCallBatching.html

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.