NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UIAtlasMaker Class Reference

Atlas maker lets you create atlases from a bunch of small textures. It's an alternative to using the external Texture Packer. More...

Inheritance diagram for UIAtlasMaker:

Classes

class  SpriteEntry
 

Static Public Member Functions

static UISpriteData AddSprite (List< UISpriteData > sprites, SpriteEntry se)
 Add a new sprite to the atlas, given the texture it's coming from and the packed rect within the atlas. More...
 
static List< SpriteEntryCreateSprites (List< Texture > textures)
 Create a list of sprites using the specified list of textures. More...
 
static void ReleaseSprites (List< SpriteEntry > sprites)
 Release all temporary textures created for the sprites. More...
 
static void ReplaceSprites (UIAtlas atlas, List< SpriteEntry > sprites)
 Replace the sprites within the atlas. More...
 
static SpriteEntry DuplicateSprite (UIAtlas atlas, string spriteName)
 Duplicate the specified sprite. More...
 
static SpriteEntry ExtractSprite (UIAtlas atlas, string spriteName)
 Extract the specified sprite from the atlas. More...
 
static void ExtractSprites (UIAtlas atlas, List< SpriteEntry > finalSprites)
 Extract sprites from the atlas, adding them to the list. More...
 
static bool UpdateTexture (UIAtlas atlas, List< SpriteEntry > sprites)
 Combine all sprites into a single texture and save it to disk. More...
 
static void ShowProgress (float val)
 Show a progress bar. More...
 
static void AddOrUpdate (UIAtlas atlas, Texture2D tex)
 Add the specified texture to the atlas, or update an existing one. More...
 
static void AddOrUpdate (UIAtlas atlas, SpriteEntry se)
 Add the specified texture to the atlas, or update an existing one. More...
 
static void UpdateAtlas (UIAtlas atlas, List< SpriteEntry > sprites)
 Update the sprite atlas, keeping only the sprites that are on the specified list. More...
 

Static Public Attributes

static UIAtlasMaker instance
 

Detailed Description

Atlas maker lets you create atlases from a bunch of small textures. It's an alternative to using the external Texture Packer.

Member Function Documentation

static void UIAtlasMaker.AddOrUpdate ( UIAtlas  atlas,
Texture2D  tex 
)
static

Add the specified texture to the atlas, or update an existing one.

static void UIAtlasMaker.AddOrUpdate ( UIAtlas  atlas,
SpriteEntry  se 
)
static

Add the specified texture to the atlas, or update an existing one.

static UISpriteData UIAtlasMaker.AddSprite ( List< UISpriteData sprites,
SpriteEntry  se 
)
static

Add a new sprite to the atlas, given the texture it's coming from and the packed rect within the atlas.

static List<SpriteEntry> UIAtlasMaker.CreateSprites ( List< Texture >  textures)
static

Create a list of sprites using the specified list of textures.

static SpriteEntry UIAtlasMaker.DuplicateSprite ( UIAtlas  atlas,
string  spriteName 
)
static

Duplicate the specified sprite.

static SpriteEntry UIAtlasMaker.ExtractSprite ( UIAtlas  atlas,
string  spriteName 
)
static

Extract the specified sprite from the atlas.

static void UIAtlasMaker.ExtractSprites ( UIAtlas  atlas,
List< SpriteEntry finalSprites 
)
static

Extract sprites from the atlas, adding them to the list.

static void UIAtlasMaker.ReleaseSprites ( List< SpriteEntry sprites)
static

Release all temporary textures created for the sprites.

static void UIAtlasMaker.ReplaceSprites ( UIAtlas  atlas,
List< SpriteEntry sprites 
)
static

Replace the sprites within the atlas.

static void UIAtlasMaker.ShowProgress ( float  val)
static

Show a progress bar.

static void UIAtlasMaker.UpdateAtlas ( UIAtlas  atlas,
List< SpriteEntry sprites 
)
static

Update the sprite atlas, keeping only the sprites that are on the specified list.

static bool UIAtlasMaker.UpdateTexture ( UIAtlas  atlas,
List< SpriteEntry sprites 
)
static

Combine all sprites into a single texture and save it to disk.

Member Data Documentation

UIAtlasMaker UIAtlasMaker.instance
static

The documentation for this class was generated from the following file: