badben
#1
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
Koei
#2
Can you provide a simple demo to test it?
badben
#3
Here are the texture and the TexturePacker files
Archive.zip (13.3 KB)
smileys.zip (65.4 KB)
Koei
#4
I tested it and it shows normal, how did you use it?
badben
#5
Did you test with a SpriteRenderer?
Koei
#6
You configured to allow rotation when you exported the atlas using TexutrePacker, so the displayed mapping will look like this.
badben
#7
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
Koei
#8
Sorry. This is because the SpriteRenderer component does not currently support atlases。
badben
#9
Well good to know.
Thanks.