Update UISquircle.cs

pull/474/head
GoShikhar 2024-04-25 21:14:48 +05:30
parent 5fb6c0844f
commit 28e91a8337
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ namespace UnityEngine.UI.Extensions
float x = 0; float x = 0;
float y = 1; float y = 1;
vert.Clear(); vert.Clear();
vert.Add(new Vector2(pivotOffsetX, height - pivotOffsetY)); vert.Add(new Vector2(-pivotOffsetX, height - pivotOffsetY));
while (x < y) while (x < y)
{ {
y = SquircleFunc(x, true); y = SquircleFunc(x, true);
@ -91,7 +91,7 @@ namespace UnityEngine.UI.Extensions
y -= delta; y -= delta;
} }
vert.Add(new Vector2(width - pivotOffsetX, pivotOffsetY)); vert.Add(new Vector2(width - pivotOffsetX, -pivotOffsetY));
for (int i = 1; i < vert.Count - 1; i++) for (int i = 1; i < vert.Count - 1; i++)
{ {