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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.