One frame of a sheet, in the image’s pixels.
| Property |
Type |
Description |
height |
number |
- |
offsetX |
number |
Where the trimmed pixels sit in the untrimmed frame, from its top left, so a trimmed frame draws where its whole frame would. |
offsetY |
number |
- |
pivot |
readonly [number, number] | undefined |
The file’s own pivot, as fractions of the untrimmed frame from its bottom left, Unity’s frame; undefined where the file has none. |
rotated |
boolean |
Packed turned a quarter clockwise, as TexturePacker marks rotated: it takes height by width of the image. |
sourceHeight |
number |
- |
sourceWidth |
number |
The untrimmed frame’s size. |
width |
number |
Its trimmed pixels’ size as drawn, before any turn in the packing. |
x |
number |
Its pixels’ left edge in the image, from the image’s left. |
y |
number |
Its pixels’ top edge in the image, from the image’s top. |