Search Issue Tracker
By Design
Votes
0
Found in
2021.3.25f1
2022.2.18f1
Issue ID
UUM-36093
Regression
Yes
Sprite with Object node's Position connected to Color material turns black when duplicating the Sprite
How to reproduce:
1. Open the “Duplicate_Sprite_issue.zip” project
2. Select a Sprite GameObject and duplicate it
Expected result: Sprite is duplicated without any additional effects
Actual result: Both sprites turn black
Reproducible with: 2021.3.2f1, 2021.3.25f1, 2022.2.18f1, 2023.1.0a10
Fixed in: 2023.1.0a11
Not reproducible with: 2020.3.48f1, 2021.3.1f1, 2023.1.0b17, 2023.2.0a15
Reproduced on: Windows 10
Note: Could not reproduce with Sprite Shapes, 3D Objects
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Resolution Note:
This is by design and working as intended. Sprite renderers use dynamic batching by default. The sprites are batched together in one draw call, which is why position data is lost. See https://docs.unity3d.com/2021.3/Documentation/Manual/dynamic-batching.html for batching limitations.
If you require to use world position in your shaders, consider using SRP Batcher instead where per object data is preserved. This was added in 2023.1.0a11. See https://docs.unity3d.com/Manual/SRPBatcher.html for more information.