Пример #1
0
 /// <summary>
 /// Gets the Rect of an AtlasRegion according to Unity texture coordinates (x-right, y-up).</summary>
 static Rect GetUnityRect(this AtlasRegion region, int textureHeight)
 {
     return(region.GetSpineAtlasRect().SpineUnityFlipRect(textureHeight));
 }
Пример #2
0
 private static Rect GetUnityRect(this AtlasRegion region, int textureHeight) =>
 region.GetSpineAtlasRect(true).SpineUnityFlipRect(textureHeight);
Пример #3
0
 /// <summary>
 /// Gets the Rect of an AtlasRegion according to Unity texture coordinates (x-right, y-up).
 /// This overload relies on region.page.height being correctly set.</summary>
 static Rect GetUnityRect(this AtlasRegion region)
 {
     return(region.GetSpineAtlasRect().SpineUnityFlipRect(region.page.height));
 }
Пример #4
0
 private static Rect GetUnityRect(this AtlasRegion region) =>
 region.GetSpineAtlasRect(true).SpineUnityFlipRect(region.page.height);