Singularity/Library/PackageCache/com.unity.2d.animation@7.0.10/Runtime/SpriteLib/SpriteLibraryData.cs

55 lines
1.3 KiB
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using System;
using System.Collections.Generic;
using UnityEngine.Serialization;
namespace UnityEngine.U2D.Animation
{
[Serializable]
internal class SpriteCategoryEntryOverride : SpriteCategoryEntry
{
[SerializeField]
bool m_FromMain;
[SerializeField]
Sprite m_SpriteOverride;
public bool fromMain
{
get => m_FromMain;
set => m_FromMain = value;
}
public Sprite spriteOverride
{
get => m_SpriteOverride;
set => m_SpriteOverride = value;
}
}
[Serializable]
internal class SpriteLibCategoryOverride : SpriteLibCategory
{
[SerializeField]
private List<SpriteCategoryEntryOverride> m_OverrideEntries;
[SerializeField]
bool m_FromMain;
[SerializeField]
int m_EntryOverrideCount;
public bool fromMain
{
get => m_FromMain;
set => m_FromMain = value;
}
public int entryOverrideCount
{
get => m_EntryOverrideCount;
set => m_EntryOverrideCount = value;
}
public List<SpriteCategoryEntryOverride> overrideEntries
{
get { return m_OverrideEntries; }
set { m_OverrideEntries = value; }
}
}
}