Merge pull request #475 from bluefallsky/enhance/gradient2-fix-radial-triangle

Enhance/gradient2 fix radial triangle
pull/480/head^2
Simon (Darkside) Jackson 2024-06-03 08:55:14 +01:00 committed by GitHub
commit 3f3e481283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -367,5 +367,14 @@ namespace UnityEngine.UI.Extensions
eventData.useDragThreshold = false; eventData.useDragThreshold = false;
} }
public void SetXWithoutNotify(float x)
{
SetX(x, false);
}
public void SetYWithoutNotify(float y)
{
SetY(y, false);
}
} }
} }

View File

@ -231,7 +231,7 @@ namespace UnityEngine.UI.Extensions
helper.AddVert(centralVertex); helper.AddVert(centralVertex);
for (int i = 1; i < steps; i++) helper.AddTriangle(i - 1, i, steps); for (int i = 1; i < steps; i++) helper.AddTriangle(i, i-1, steps);
helper.AddTriangle(0, steps - 1, steps); helper.AddTriangle(0, steps - 1, steps);
} }