WuhuIslandTesting/Library/PackageCache/com.unity.scriptablebuildpipeline@1.21.5/Editor/Interfaces/IBuildSpriteData.cs

35 lines
972 B
C#
Raw Permalink Normal View History

2025-01-07 02:06:59 +01:00
using System;
using System.Collections.Generic;
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; }
}
}