Home / Unity / U12

Unity error: Secondary Texture names must be unique within a Sprite or Sprite Atlas. — cause and fix

In the SpriteAtlas Inspector Secondary Texture list, duplicate Secondary Texture names are

ID
U12
Engine
Unity
Verification
原文命中(抓取页面)
Frequency
未公开

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

  1. Check the atlas Secondary Texture Name list and keep names unique within the atlas.
  2. Remove duplicate entries or rename, then pack preview again.

Source links

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.

View Pro pack / order

Back to the all-errors index Checkout and buy the Pro pack — $19.00