Home

Awesome

<h1>Unity SpriteAtlas Generator</h1>

A simple rule-based sprite atlas generator. The generator create atlased by matching the rule pattern.

Table of Contents

Install Package

Install via Package Manager

Add to your project manifiest by path [%UnityProject%]/Packages/manifiest.json new Scope:

{
  "scopedRegistries": [
    {
      "name": "UniGame",
      "url": "http://packages.unigame.pro:4873/",
      "scopes": [
        "com.unigame",
        "com.littlebigfun",
        "com.alelievr"
      ]
    },
    
    "__comment":"another scoped registers",
    
  ],
}

Now install via Package Manager

Install via Git URL

Open Packages/manifest.json with your favorite text editor. Add the following line to the dependencies block.

    {
        "dependencies": {
            "com.unigame.atlasgenerator": "https://github.com/UniGameTeam/UniGame.AtlasGenerator.git"
        }
    }
    

How to Use

Default Sprite Atlas Settings

Atlas Generator Rules

Rule Examples

TypeExample
WildcardAsset/Sprites/Icons/*
WildcardAsset/Sprites/Level??/*.asset
Regex^Assets/Models/.*\.fbx
RegexAssets/Weapons/(?<prefix>(?<category>[^/]+)/(.*/)*)(?<asset>.*_Data.*\.asset)
Rule PathRule TypeResultsComments
Assets/t1Wildcardt1 and t1/1.txtbad
Assets/t1/*.txtWildcardt1/1.txtgood
^Assets/t1$Regext1good
^Assets/t1/.*Regext1/1.txtgood