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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.