Search Issue Tracker
By Design
Votes
0
Found in
2022.3.55f1
6000.0.32f1
6000.1.0a9
Issue ID
UUM-91378
Regression
No
Warning “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“ is thrown when packing Atlas with Sprite Atlas V2
Reproduction steps:
1. Open the attached project "ReproProj"
2. In the Project window, select the “New Sprite Atlas”
3. In Inspector, add “Assets/Flag.png“ and “Assets/WhiteUnit.png“ to the “Objects for Packing“ field
4. Click the “Pack Preview” Button
5. Observe the Console
Expected result: No Warnings exist
Actual result: Warning is present “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“
Reproducible with: 2022.3.55f1, 6000.0.32f1, 6000.1.0a9
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
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
- Crashes in the wild on Vulkan in CreateDepthSurfaceImpl
- Position and rotation of a GameObject with Rigidbody reset when it is enabled and moved in the same Update call and the frame rate is low
- “Ignoring depth surface store action as it is memoryless” warnings thrown when Capturing new Snapshot while in Play Mode
- Certain textures are not loaded when using the "Load texture data on demand" feature
- [Android][OpenGL] The 2DLight is disproportionately bright on some Android devices when OpenGLES3 is used
Resolution Note:
As stated in the warning there is a mismatch in secondary textures between the packed atlas sprites (WhiteUnit and Flag).
This can waste texture space and potentially break draw call batching.
We advise either have the same secondary texture fields for all packed sprites or just removing the secondary texture fields if not used.