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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.