<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yiren Labs</title>
    <description>The latest articles on DEV Community by Yiren Labs (@yirenlabs).</description>
    <link>https://dev.to/yirenlabs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265787%2F6eb0c21f-ea94-456b-a5a9-5523831d5117.png</url>
      <title>DEV Community: Yiren Labs</title>
      <link>https://dev.to/yirenlabs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yirenlabs"/>
    <language>en</language>
    <item>
      <title>Fixing sprite atlas metadata errors in Unity / Godot / Phaser — offline, without re-exporting</title>
      <dc:creator>Yiren Labs</dc:creator>
      <pubDate>Thu, 26 Nov 2026 02:45:14 +0000</pubDate>
      <link>https://dev.to/yirenlabs/fixing-sprite-atlas-metadata-errors-in-unity-godot-phaser-offline-without-re-exporting-9kp</link>
      <guid>https://dev.to/yirenlabs/fixing-sprite-atlas-metadata-errors-in-unity-godot-phaser-offline-without-re-exporting-9kp</guid>
      <description>&lt;p&gt;A sprite atlas is two artifacts that have to agree: the bitmap sheet itself, and the metadata file that tells the engine where each frame sits. When the two drift apart, the symptoms look the same in Unity, Godot, and Phaser: sprites show the wrong region, a strip slides a few pixels sideways, frames clip at the edge, or the editor reports a region it cannot find. The usual reach-for fix is re-exporting the sheet from the source art project. That costs a rebuild, a round trip through the art tool, and it often leaves the broken metadata untouched. Most of these faults are metadata-only: the bitmap is fine, and a small offline edit to the JSON or XML file resolves them.&lt;/p&gt;

&lt;p&gt;This walkthrough covers four fault patterns observed on real Unity, Godot, and Phaser exports. For each one, I show how to confirm the fault from the data itself, and the concrete field to change, before you touch the art source.&lt;/p&gt;

&lt;p&gt;Before you edit anything, make a copy of the metadata file and leave the original bitmap untouched. Metadata patches are small and reversible, but a blind overwrite can erase frame names that your animations still reference. Open the sheet in an image viewer alongside the JSON or XML so you can cross-check a rectangle against the pixels it covers. Work one sheet at a time, and re-run the same check after each edit instead of batching several changes before comparing the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  How atlas metadata is structured
&lt;/h2&gt;

&lt;p&gt;A JSON sheet (Phaser, many Unity sprite-sheet exporters) stores a &lt;code&gt;frames&lt;/code&gt; dictionary. Each entry carries &lt;code&gt;x&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;w&lt;/code&gt;, &lt;code&gt;h&lt;/code&gt; for the rectangle on the sheet, and a &lt;code&gt;meta.size&lt;/code&gt; block with the sheet width and height. An XML sheet (Godot, older Unity workflows) stores one node per frame with a &lt;code&gt;name&lt;/code&gt; attribute and an &lt;code&gt;x&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;w&lt;/code&gt;, &lt;code&gt;h&lt;/code&gt; rect, plus a reference back to the atlas bitmap. Every check below starts from those fields.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. JSON frames missing keys
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; The engine warns that a frame is not found, or several sprites render blank even though the sheet image looks complete in an image viewer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to confirm.&lt;/strong&gt; Open the JSON and walk every entry in &lt;code&gt;frames&lt;/code&gt;. Each entry should expose numeric &lt;code&gt;x&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;w&lt;/code&gt;, and &lt;code&gt;h&lt;/code&gt;. A missing or non-numeric field means the engine cannot place that slice. Then check that every rectangle stays inside the dimensions in &lt;code&gt;meta.size&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_json_atlas&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"meta"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"size"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;sheet_w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sheet_h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"h"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;problems&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"frames"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"h"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nb"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;problems&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{name}: missing or non-numeric {key}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"h"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sheet_w&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sheet_h&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;problems&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{name}: rect outside sheet {sheet_w}x{sheet_h}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;problems&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;How to fix.&lt;/strong&gt; Fill a missing &lt;code&gt;w&lt;/code&gt; or &lt;code&gt;h&lt;/code&gt; from the source slice size. Do not invent an &lt;code&gt;x&lt;/code&gt; or &lt;code&gt;y&lt;/code&gt; by guessing; if the slice entry is absent entirely, rebuild it from the original slice rather than estimating the rectangle. Re-run the check after the edit so the out-of-bounds list comes back empty.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. XML frame name and atlas index mismatch
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; In Godot, a sprite appears under the wrong name, or an animation swaps between two unrelated frames as it plays.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to confirm.&lt;/strong&gt; Parse the XML and list every frame &lt;code&gt;name&lt;/code&gt; next to its rectangle. Look for duplicate names, and check that every name referenced by your animation keys actually exists in the list. A common copy-paste error is one rectangle duplicated across several names, which moves the wrong slice under each label.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to fix.&lt;/strong&gt; Rename the frame node's &lt;code&gt;name&lt;/code&gt; attribute so it matches the animation key. Leave the rectangle unchanged unless the region itself is wrong. If two frames share one rectangle, restore the second rectangle from the slice map before renaming anything else, or you will still point both labels at the same pixels.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. frameWidth written wrong, whole strip misaligned
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; Every frame after the first one shifts horizontally by a constant offset, and rows drift further apart the lower they sit. The first frame often looks correct, which makes this easy to miss.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to confirm.&lt;/strong&gt; Compare the frame width recorded in the metadata against the real slice width on the bitmap. Compute how many columns fit across &lt;code&gt;meta.size.width&lt;/code&gt;, and verify each frame's &lt;code&gt;x&lt;/code&gt; lands on &lt;code&gt;column * frameWidth&lt;/code&gt;, with &lt;code&gt;y&lt;/code&gt; on &lt;code&gt;row * frameHeight&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;grid_mismatches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame_w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame_h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sheet_w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;bad&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;col&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;frame_w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;frame_h&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;expect_x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expect_y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;col&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;frame_w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;frame_h&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;expect_x&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;expect_y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;bad&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expect_x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expect_y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sheet_w&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="n"&gt;frame_w&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;bad&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;How to fix.&lt;/strong&gt; Set &lt;code&gt;frameWidth&lt;/code&gt; to the real slice width first, then re-derive each &lt;code&gt;x&lt;/code&gt; as &lt;code&gt;column * frameWidth&lt;/code&gt; and each &lt;code&gt;y&lt;/code&gt; as &lt;code&gt;row * frameHeight&lt;/code&gt;. If the sheet uses padding between slices, keep that padding in the stride; changing only the width without fixing the stride reproduces the same drift one pass later.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Atlas re-exported twice, meta.size no longer matches the bitmap
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; Frames near the bottom or right edge clip, and the engine reads coordinates against a sheet size that no longer matches the current bitmap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to confirm.&lt;/strong&gt; Open the bitmap and read its real pixel width and height. Compare that to &lt;code&gt;meta.size&lt;/code&gt; in the JSON, or to the sheet dimensions referenced in the XML. A difference here means the metadata still describes an older pack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to fix.&lt;/strong&gt; Update &lt;code&gt;meta.size&lt;/code&gt; to match the current bitmap dimensions. Leave the per-frame rects alone unless a frame now sits outside the new sheet. If the sheet grew, most frames need no coordinate change; if it shrank, remove frames that no longer fit rather than leaving clipped rects behind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why offline batch processing beats re-exporting
&lt;/h2&gt;

&lt;p&gt;Re-exporting forces you to reopen the art project, confirm every slice, repack the sheet, and re-import it into the engine. Any change to slice padding or trimming shifts every coordinate in the file again. An offline checker reads the metadata and the bitmap side by side, flags the four faults above, and patches only the offending field. You keep the original bitmap, you do not touch the source art, and a whole folder of sheets can be checked in one pass before the next engine import.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next step
&lt;/h2&gt;

&lt;p&gt;The checks above map to a small offline helper that scans a folder of JSON and XML atlases and reports the same mismatches before import. A free sample is on the &lt;a href="https://atlas-errors.petersoncool.workers.dev/fixer/" rel="noopener noreferrer"&gt;fixer page&lt;/a&gt;, and a matching breakdown for the Phaser JSON missing-frames case is in this &lt;a href="https://atlas-errors.petersoncool.workers.dev/error/phaser-atlas-json-missing-frames/" rel="noopener noreferrer"&gt;error walkthrough&lt;/a&gt;. If you want the offline batch runner that applies these fixes across a whole folder, the full version is $19.&lt;/p&gt;

</description>
      <category>unity3d</category>
      <category>godot</category>
      <category>gamedev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
