- Home /
Question by
craity · Aug 21, 2015 at 03:58 AM ·
texturetexture2datlastexture-atlaspacktextures
Packing unity textures into atlases
Hello, I'm trying to create atlases, which will hold only textures that weren't scaled down, number of atlases doesn't matter. I'm using Texture2D.PackTextures() for that, but it scales textures down if they don't fit. To avoid that, I tried to sum areas of each texture and compare it to the sum of rectangle areas, but results always differ and I actually don't have any idea how this function computes that.
Any clues?
Comment
Your answer
Follow this Question
Related Questions
Texture2D.PackTextures() - maximumAtlasSize 1 Answer
Texture2D.PackTextures - attempt to determine if texture was scaled 0 Answers
Is it possible to get the atlas for a font texture? 1 Answer
PackTextures and DrawTexture 1 Answer
Is there a way to cap the max mipmap level of a generated texture? 1 Answer