TexutrePacker export settings with CocosCreator 3.6.2

Hello,

I tried to use the cocos2d-x preset, but I got a weird render for the SpriteRenderer.

(I see that I have to disable the Trim for the Sprite component here: TexturePacker, the trim lost the positions)


The left sprite is a normal .png
The 2 others sprites are from texture packer. They are stretched and cropped.

Packer.png

Thanks! @AndreasLoew

Can you provide a simple demo to test it?

Here are the texture and the TexturePacker files

Archive.zip (13.3 KB)

smileys.zip (65.4 KB)

I tested it and it shows normal, how did you use it?

Did you test with a SpriteRenderer?

You configured to allow rotation when you exported the atlas using TexutrePacker, so the displayed mapping will look like this.
image
image

Actually, I can’t rotate the Texture Atlas in CocosCreator.
In your screenshot you rotate the single image.

Even I disable the rotation in TexurePacker I still got the problem of stretched image:

Nervermind, the TexturePacker doesn’t have a CocosCreator preset.
We need one @AndreasLoew :slight_smile:

Sorry. This is because the SpriteRenderer component does not currently support atlases。

Well good to know. :slight_smile:
Thanks.