-
The
Texture Atlas Creator
was designed to help you doing simple tasks directly from theUnity Editor
it simplify the process (and saves time) of creating textureAtlases
orcollections
with extra tools. -
The Editor
was just intended to collect and stack2DTextures
into aAtlas
with ease, Then it became something else and I do plan on updating it but for now it is what it is!. -
I might make a more complex version with more structure, but I want this to be all in one file.
-
Expect some bugs when it's coming to edge cases and I'm open to adding more features upon request.
-
For a quick look at the editor see: Screenshots.
- Grid Packing: Arrange textures in a grid layout with customizable rows and columns.
- Tight Packing: Efficiently pack textures to minimize unused space.
- Custom Resize: Adjust the size of the texture atlas by a specified percentage.
- Original Quality Preservation: Always resizes based on the original textures to prevent quality degradation.
- Padding: Add space around each texture to avoid bleeding artifacts.
- Cropping: Remove unwanted space around textures.
- Customizable Outline: Add outlines to textures with adjustable thickness and color.
- Gaussian Blur: Apply a Gaussian blur to the outlines for a smoother appearance.
- Resizing: Simple Resizing Scale by (%).
- Import Folder: Imports the whole folder of selected image and creates assets from it without adding it to your project.
- Save Atlas: Export the entire texture atlas as a single PNG file.
- Save Individually: Export each texture individually with all applied modifications.
- Real-time Preview: View the texture atlas as you make adjustments.
- Clone or download the repository.
- Place the
TextureAtlasEditor.cs
script into your Unity project, preferably within anEditor
folder.
-
Open the Texture Atlas Creator from the Unity menu:
Tools -> Texture Atlas Creator
orAlt + Shift + A
. -
Add textures to the list by dragging and dropping them into the designated area or using the
+
button or use theTop Left -> Import (Folder)
and select one item to import the folder. -
Adjust the settings on the right sidebar:
- Packing: Choose between Grid Packing and Tight Packing.
- Extend & Cropping: Adjust the extend (padding) and cropping values.
- Outline: Set the thickness and color of the outline and apply Gaussian blur if needed or use Pixel.
- Resize: Set the percentage to resize the atlas.
-
Click the
Generate
button to create the texture atlas (Auto preview Generator). -
Preview the atlas in the middle area.
-
Save the atlas using the
Save Atlas
button or save individual textures using theSave Individually
button.