// [UNITY-SKILL:SPRITEATLAS] using UnityEngine; /// /// Output structure for sprite packing. /// Set this on each SpriteData to specify where and how the sprite should be packed. /// public struct SpritePack { /// X position in the atlas (OUTPUT) public int x; /// Y position in the atlas (OUTPUT) public int y; /// Atlas page index for multi-page atlases (OUTPUT) public int page; /// Rotation/flip transform to apply (OUTPUT) public PackTransform rot; } /// /// Sprite transformation options during packing. /// public enum PackTransform { /// No transformation applied None, /// Flip horizontally FlipHorizontal, /// Flip vertically FlipVertical, /// Rotate 180 degrees Rotate180 }