You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
623 B

using UnityEngine;
namespace UnityEditor.U2D.Animation
{
internal class SpriteCache : TransformCache
{
[SerializeField]
string m_ID;
[SerializeField]
Rect m_TextureRect;
[SerializeField]
Vector2 m_PivotNormalized;
public string id
{
get => m_ID;
internal set => m_ID = value;
}
public Rect textureRect
{
get => m_TextureRect;
set => m_TextureRect = value;
}
public Vector2 pivotRectSpace => Vector2.Scale(textureRect.size, m_PivotNormalized);
}
}