|
| static Rect[] | PackTextures (Texture2D texture, Texture2D[] textures, int width, int height, int padding, int maxSize) |
| |
| Enumerator |
|---|
| RectBestShortSideFit |
-BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best.
|
| RectBestLongSideFit |
-BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best.
|
| RectBestAreaFit |
-BAF: Positions the rectangle into the smallest free rect into which it fits.
|
| RectBottomLeftRule |
-BL: Does the Tetris placement.
|
| RectContactPointRule |
-CP: Choosest the placement where the rectangle touches other rects as much as possible.
|
| UITexturePacker.UITexturePacker |
( |
int |
width, |
|
|
int |
height, |
|
|
bool |
rotations |
|
) |
| |
| void UITexturePacker.Init |
( |
int |
width, |
|
|
int |
height, |
|
|
bool |
rotations |
|
) |
| |
| float UITexturePacker.Occupancy |
( |
| ) |
|
Computes the ratio of used surface area.
| static Rect [] UITexturePacker.PackTextures |
( |
Texture2D |
texture, |
|
|
Texture2D[] |
textures, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
padding, |
|
|
int |
maxSize |
|
) |
| |
|
static |
| bool UITexturePacker.allowRotations |
| int UITexturePacker.binHeight = 0 |
| int UITexturePacker.binWidth = 0 |
| List<Rect> UITexturePacker.freeRectangles = new List<Rect>() |
| List<Rect> UITexturePacker.usedRectangles = new List<Rect>() |
The documentation for this class was generated from the following file: