Beispiel #1
0
 internal static UnityEngine.Vector2 GetSpriteTextureRectOffset(UnityEngine.Sprite sprite)
 {
     return(sprite.IsInAtlas() ? sprite.GetAtlasTextureRectOffset() : sprite.textureRectOffset);
 }
Beispiel #2
0
 internal static UnityEngine.Texture2D GetSpriteTexture(UnityEngine.Sprite sprite)
 {
     return(sprite.IsInAtlas() ? sprite.GetAtlasTexture() : sprite.texture);
 }