mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Method to flip v and v2 in UVs.
This commit is contained in:
parent
eeaba21e2f
commit
15b3f0979b
@ -205,6 +205,14 @@ namespace Spine {
|
|||||||
return i + 1;
|
return i + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void FlipV () {
|
||||||
|
for (int i = 0, n = regions.Count; i < n; i++) {
|
||||||
|
AtlasRegion region = regions[i];
|
||||||
|
region.v = 1 - region.v;
|
||||||
|
region.v2 = 1 - region.v2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Returns the first region found with the specified name. This method uses string comparison to find the region, so the result
|
/// <summary>Returns the first region found with the specified name. This method uses string comparison to find the region, so the result
|
||||||
/// should be cached rather than calling this method multiple times.</summary>
|
/// should be cached rather than calling this method multiple times.</summary>
|
||||||
/// <returns>The region, or null.</returns>
|
/// <returns>The region, or null.</returns>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user