Check image UUID references manually or scan prefab files with Node.js to identify potentially unused images.
Old projects often accumulate images that are no longer referenced. Removing confirmed unused files reduces project size and simplifies asset management.
For a single image, right-click it in Cocos Creator and inspect its UUID references. Also search code for dynamic references before deleting it.
For larger projects, this Node.js script compares image .meta UUIDs with UUIDs found in prefab files:
for (const prefab of prefabs) { const content = fs.readFileSync(prefab, 'utf8'); let match; while ((match = uuidPattern.exec(content))) referenced.add(match[1]); }
Adapt the suffix and UUID format to your Creator version. Scan .scene files as well as prefabs when scenes can reference assets. Treat the output as candidates for manual review—dynamic loading and code-generated paths will not necessarily appear in serialized references.