cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
7.09k stars 1.82k forks source link

Cocos ignore pivot of plists when importing #12357

Open RobotoSkunk opened 2 years ago

RobotoSkunk commented 2 years ago

Cocos Creator version

3.6.0

System information

Windows 10 Profesional 21H1 19043.1826

Issue description

When a new .plist is generated in Texture Packer 6.0.2, it comes with definitions for the pivots of the sprites, however, when importing the .plist in Cocos Creator, the pivots are reset or ignored to the center.

unknown (5) unknown (6)

Relevant error log output

No output is generated

Steps to reproduce

Generate a new texture atlas with Texture Packer with some pivots different from {0.5, 0.5}, then import it to Cocos Creator and it will ignore the pivot.

Minimal reproduction project

Tests.zip

SantyWang commented 2 years ago

@LinYunMo Please confirm it