Original message (verbatim)
ArgumentOutOfRangeException: texIndex must point to a valid index in textureData list.
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
While building SpritePack data in a custom packing flow, the texIndex referenced by a sprite falls outside the textureData list.
Typical cause
The packing job checks texIndex >= textureData.Count, disposes the NativeArray, and throws ArgumentOutOfRangeException("texIndex", ...).
Step-by-step fix
- Verify each sprite's texture index maps one-to-one with the texture list.
- Fill textureData before the sprite data so every entry exists.
- Check that atlas slicing did not drop or duplicate texture entries.
Source links
Per-entry sources and capture date are listed at /sources#U17.
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