cocos_upgrade_image_meta
Convert PNG texture metadata to sprite-frame format for Cocos Creator, enabling image use in Sprite components without manual editing.
Instructions
Upgrade a texture-only PNG meta to include a sprite-frame sub.
Cocos Creator's CLI --build auto-generates type: texture metas
when it imports a fresh PNG. To reference such a PNG from
cc.Sprite, run this tool to add the f9941 (sprite-frame) sub.
Idempotent — does nothing if the sub already exists.
Returns the updated meta dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta_path | Yes |