Question by
jcuriel_glu · Apr 26, 2018 at 01:24 AM ·
uispritepolicypacking
Will the Sprite Packer ignore 'Max Size' set in a Sprites' import settings?
I've set a texture that is at a larger size to have a Max Size of 512 in its Import Settings. It also has a packing tag. Will the Sprite Packer ignore this setting when creating atlases? The reason I ask is I'm seeing this error when the build attempts to create the atlases.
Failed executing selected SpritePackerPolicy.ArgumentException: Atlas "GraphicsUI (Group 0)" (2048x2048) can't fit sprite "SpriteNameHere" (1747x2133).
Even though my 'SpriteNameHere' sprite has a max size of 512.
Comment
Answer by MrZebbi · Nov 08, 2019 at 10:22 AM
https://docs.unity3d.com/Manual/SpritePacker.html change the 2048 to the size you want , put that script Under Editor folder under assets