Firstborn/Library/PackageCache/com.unity.scriptablebuildpi.../Editor/Interfaces/IBuildSpriteData.cs
Schaken-Mods 7502018d20 Adding Mod Support
There is an asset in the store I grabbed. the coding is WAY above my head, I got about half of it and integrated and adapted what I can to it. im going as far as I can with it and ill come back in a few month when I understand t better.
2023-05-13 22:01:48 -05:00

35 lines
972 B
C#

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; }
}
}