Method | Description | |
---|---|---|
AddOrUpdate ( UIAtlas, atlas, |
Add the specified texture to the atlas, or update an existing one.
|
Method | Description | |
---|---|---|
AddSprite ( List |
Add a new sprite to the atlas, given the texture it's coming from and the packed rect within the atlas.
|
|
Compare ( SpriteEntry a, SpriteEntry b ) : int |
Used to sort the sprites by pixels used
|
|
CreateSprites ( List |
Create a list of sprites using the specified list of textures.
|
|
ExtractSprites ( UIAtlas, atlas, List |
Extract sprites from the atlas, adding them to the list.
|
|
GetSelectedTextures ( ) : List |
Helper function that retrieves the list of currently selected textures.
|
|
GetSpriteList ( List |
Helper function that creates a single sprite list from both the atlas's sprites as well as selected textures. Dictionary value meaning: 0 = No change 1 = Update 2 = Add
|
|
LoadTextures ( List |
Load the specified list of textures as Texture2Ds, fixing their import properties as necessary.
|
|
OnGUI ( ) : void |
Draw the UI for this tool.
|
|
OnSelectAtlas ( MonoBehaviour obj ) : void |
Atlas selection callback.
|
|
OnSelectionChange ( ) : void |
Refresh the window on selection.
|
|
PackTextures ( |
Pack all of the specified sprites into a single texture, updating the outer and inner rects of the sprites as needed.
|
|
ReleaseSprites ( List |
Release all temporary textures created for the sprites.
|
|
ReplaceSprites ( UIAtlas, atlas, List |
Replace the sprites within the atlas.
|
|
UpdateAtlas ( List |
Update the sprites within the texture atlas, preserving the sprites that have not been selected.
|
|
UpdateAtlas ( UIAtlas, atlas, List |
Update the sprite atlas, keeping only the sprites that are on the specified list.
|
|
UpdateTexture ( UIAtlas, atlas, List |
Combine all sprites into a single texture and save it to disk.
|
public static AddOrUpdate ( UIAtlas, atlas, |
||
atlas | UIAtlas, | |
tex | ||
return | void |