Original message (verbatim)
Secondary Texture names must be unique within a Sprite or Sprite Atlas.
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
In the SpriteAtlas Inspector Secondary Texture list, duplicate Secondary Texture names are configured for the same atlas (or sprite); applying settings outputs a LogWarning.
Typical cause
Secondary textures are mapped to the sprite's material map by name; duplicates cause mapping ambiguity, so packing or lookup cannot determine the corresponding texture.
Step-by-step fix
- Check the atlas Secondary Texture Name list and keep names unique within the atlas.
- Remove duplicate entries or rename, then pack preview again.
Source links
- https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/2D/SpriteAtlas/SpriteAtlasInspector.cs#L85
- https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/2D/SpriteAtlas/SpriteAtlasInspector.cs#L589
- https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/2D/SpriteAtlas/SpriteAtlasImporterInspector.cs#L95
- https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/2D/SpriteAtlas/SpriteAtlasImporterInspector.cs#L804
- https://codeload.github.com/Unity-Technologies/UnityCsReference/zip/refs/heads/master
Per-entry sources and capture date are listed at /sources#U12.
Related errors
Related Unity errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00