What you see

In the Sprite Atlas Inspector, setting the Master Atlas field rejects your choice with Cannot set itself as MasterAtlas. Please assign a valid MasterAtlas. The field snaps back to its previous value, and the atlas you are editing keeps its current Type. If you opened the asset expecting it to behave as a variant that derives from another atlas, the variant relationship simply never takes effect, and sprites that should come through the scaled master keep resolving against whatever atlas was packed last.

Why it happens

A Variant Sprite Atlas does not hold its own packed texture at full size. It references a Master atlas and scales the master's contents down by its own Scale factor. The hierarchy only makes sense when the master is a different asset: a variant points up to a master, and the master packs the original sprites. When you drag the current atlas into its own Master Atlas field, you create a self-reference, a cycle where the variant would derive from itself. The inspector refuses that assignment on purpose, because a cycle cannot be resolved at pack time, and allowing it would leave the packer walking in circles looking for the texture source.

The same warning appears when the asset's Type was switched from Master to Variant after the field already held a reference, or when a copy-paste of an atlas asset carried the old master link along with it. It can also surface when two atlases in the project share the same name in your head but are actually the same file duplicated in the picker, so the target you select is still the asset you are editing. A related rejection covers the other direction of the same rule: assigning a second variant as the master is refused as well, because only a Master atlas may sit above a variant in the chain.

Confirm it

Open the atlas asset that raised the warning and read the Type dropdown at the top of the Inspector. If Type is set to Variant, the Master Atlas field must point to a different asset. Click that field and inspect the picker list: the entry that matches the current atlas's own name and file path is the one that triggered the self-reference. Cross-check the asset's file path against the master you intended, and confirm the two are separate .spriteatlas files under Assets.

A valid variant setup shows a Master Atlas entry whose file path differs from the current asset, and that master's own Type is Master. A broken setup either leaves the Master Atlas field empty after the rejected assignment, or holds a reference to the asset you are editing right now. If the project has only one atlas so far, that is usually the root cause: there is no second packed master for the variant to point at yet, and creating the variant before the master exists pushes you back onto the self-reference field.

Fix it

Assign a real Master atlas that lives outside this asset:

  1. Set the current atlas Type to Variant only after you have a packed Master atlas ready.
  2. In the Master Atlas field, pick the other Master SpriteAtlas, never the current file.
  3. Leave Scale at the factor you want the variant to render at.
  4. Click Pack Preview and let the atlas repack before checking the variant in a scene.

If you meant for this asset to be the main packed atlas, switch Type back to Master instead of chasing the variant setup. A variant must always sit below its master in the hierarchy; it cannot be its own parent, and a second variant atlas cannot act as someone else's master either. When you duplicate an atlas to make a variant, re-check the Master Atlas field after the duplicate, because the copied reference can still point back to the original in a way that does not match the new asset's role.

After saving, reopen the Inspector and verify the Master Atlas path points to the other asset, Pack Preview succeeds without the warning, and sprites referenced through the variant load at the scaled size you expect. Check a scene that uses the variant directly, so the atlas resolves at runtime rather than only in the preview window.

The exact engine message and source location for this atlas warning are documented in the error reference.