Files
2026-09-21 12:15:57 +03:00

37 lines
1010 B
C#

using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Build.Content;
namespace UnityEditor.Build.Pipeline.Interfaces
{
/// <summary>
/// The importer data about a sprite asset.
/// </summary>
[Serializable]
public class SpriteImporterData
{
/// <summary>
/// Property if this sprite asset is packed by the sprite packer.
/// </summary>
public bool PackedSprite { get; set; }
/// <summary>
/// Object identifier of the source texture for the sprite.
/// </summary>
public ObjectIdentifier SourceTexture { get; set; }
}
/// <summary>
/// Base interface for the storing sprite importer data for sprite assets.
/// </summary>
public interface IBuildSpriteData : IContextObject
{
/// <summary>
/// Map of sprite asset to importer data.
/// </summary>
Dictionary<GUID, SpriteImporterData> ImporterData { get; }
}
}