Search Issue Tracker
Duplicate
Votes
0
Found in
2021.2.11f1
Issue ID
1405321
Regression
No
[2D][Sprite Atlas] Atlased sprites with different secondary texture order not batched in 2021.2
[2D][Sprite Atlas] Atlased sprites with different secondary texture order not batched in 2021.2
Note: Batching works fine for 2022.1 and 2022.2
Repro steps:
- Open attached project
- In Sprite Editor window, observe Axe_A has different secondary texture order than rest of weapon sprites
- Open SampleScene, enter playmode
- Open Frame Debugger, observe textures are referencing sprite atlas
- Observe 2-3 draw calls with Axe_A not being batched with rest of the sprites even if they are atlased
Expected result: Sprites are all batched together regardless of secondary texture order when included in Sprite Atlas
Actual result: Sprites are not batched together due to secondary texture order even when included in Sprite Atlas
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Closed as a duplicate of:
https://issuetracker.unity3d.com/issues/2d-sprite-mismatch-in-secondary-texture-order-for-sprites-in-scene-causes-draw-batching-to-break
Backport created targeting 2021.2 to track fix for this issue