A game about forced loneliness, made by TACStudios
at master 28 lines 615 B view raw
1using UnityEngine; 2 3namespace UnityEditor.U2D.Animation 4{ 5 internal class SpriteCache : TransformCache 6 { 7 [SerializeField] 8 string m_ID; 9 [SerializeField] 10 Rect m_TextureRect; 11 [SerializeField] 12 Vector2 m_PivotNormalized; 13 14 public string id 15 { 16 get => m_ID; 17 internal set => m_ID = value; 18 } 19 20 public Rect textureRect 21 { 22 get => m_TextureRect; 23 set => m_TextureRect = value; 24 } 25 26 public Vector2 pivotRectSpace => Vector2.Scale(textureRect.size, m_PivotNormalized); 27 } 28}