// [UNITY-SKILL:SPRITEATLAS]
using UnityEditor.U2D;
using UnityEngine;
///
/// Information about each sprite in the packing process.
/// This structure is populated by Unity and used by custom packers.
///
public struct SpriteData
{
/// Unique identifier for the sprite asset
public GUID guid;
/// Index into the textureData array
public int texIndex;
/// Source rectangle in the source texture
public RectInt rect;
/// Number of mesh indices for this sprite
public int indexCount;
/// Number of mesh vertices for this sprite
public int vertexCount;
/// Offset into the indexData array
public int indexOffset;
/// Offset into the vertexData array
public int vertexOffset;
/// OUTPUT: Set this to specify packing result
public ScriptablePacker.SpritePack output;
}