using System; using System.Collections.Generic; using UnityEditor.U2D.Tooling.Analyzer; using UnityEngine; namespace SampleReport { /// /// Represents the root data structure for capturing Sprite asset information. /// [Serializable] class SpriteCaptureData : ISaveData { /// /// List of sprite asset data entries. /// public List spriteData = new(); /// /// Last time the capture was performed. /// public long lastCaptureTime; } /// /// Contains metadata and Sprite data for a specific sprite asset. /// [Serializable] class SpriteAssets { /// /// The GUID of the asset path. /// public string assetPathGuid; /// /// The last modified time of the asset file. /// public long fileModifiedTime; /// /// The last modified time of the asset's meta file. /// public long metaFileModifiedTime; /// /// List of individual sprite data within the asset. /// public List spriteData = new(); } /// /// Stores information about an individual Sprite. /// [Serializable] class SpriteData { /// /// The name of the Sprite. /// public string name; /// /// The global identifier for the Sprite. /// public string spriteGlobalID; /// /// The number of triangles in the Sprite mesh. /// public int triangleCount; /// /// The number of vertices in the Sprite mesh. /// public int vertexCount; } }