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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
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.