NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UIAtlasMaker.SpriteEntry Class Reference
Inheritance diagram for UIAtlasMaker.SpriteEntry:
UISpriteData

Public Member Functions

void SetTexture (Color32[] newPixels, int newWidth, int newHeight)
 HACK: Prevent Unity from unloading temporary textures. Discovered by "alexkring": http://www.tasharen.com/forum/index.php?topic=3079.45 More...
 
void Release ()
 Release temporary resources. More...
 
- Public Member Functions inherited from UISpriteData
void SetRect (int x, int y, int width, int height)
 Convenience function – set the X, Y, width, and height. More...
 
void SetPadding (int left, int bottom, int right, int top)
 Convenience function – set the sprite's padding. More...
 
void SetBorder (int left, int bottom, int right, int top)
 Convenience function – set the sprite's border. More...
 
void CopyFrom (UISpriteData sd)
 Copy all values of the specified sprite data. More...
 
void CopyBorderFrom (UISpriteData sd)
 Copy the border information from the specified sprite. More...
 

Public Attributes

Texture2D tex
 
GameObject tempGO
 
Material tempMat
 
bool temporaryTexture = false
 
- Public Attributes inherited from UISpriteData
string name = "Sprite"
 
int x = 0
 
int y = 0
 
int width = 0
 
int height = 0
 
int borderLeft = 0
 
int borderRight = 0
 
int borderTop = 0
 
int borderBottom = 0
 
int paddingLeft = 0
 
int paddingRight = 0
 
int paddingTop = 0
 
int paddingBottom = 0
 

Additional Inherited Members

- Properties inherited from UISpriteData
bool hasBorder [get]
 Whether the sprite has a border. More...
 
bool hasPadding [get]
 Whether the sprite has been offset via padding. More...
 

Member Function Documentation

void UIAtlasMaker.SpriteEntry.Release ( )

Release temporary resources.

void UIAtlasMaker.SpriteEntry.SetTexture ( Color32[]  newPixels,
int  newWidth,
int  newHeight 
)

HACK: Prevent Unity from unloading temporary textures. Discovered by "alexkring": http://www.tasharen.com/forum/index.php?topic=3079.45

Member Data Documentation

GameObject UIAtlasMaker.SpriteEntry.tempGO
Material UIAtlasMaker.SpriteEntry.tempMat
bool UIAtlasMaker.SpriteEntry.temporaryTexture = false
Texture2D UIAtlasMaker.SpriteEntry.tex

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