From 86744455f1bc44b71b41718d96701b58ce39737c Mon Sep 17 00:00:00 2001 From: bluefallsky Date: Sun, 28 Apr 2024 20:48:09 +0900 Subject: [PATCH] fix radial triangle add order(#384) --- Runtime/Scripts/Effects/Gradient2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/Effects/Gradient2.cs b/Runtime/Scripts/Effects/Gradient2.cs index 624326a..2197b88 100644 --- a/Runtime/Scripts/Effects/Gradient2.cs +++ b/Runtime/Scripts/Effects/Gradient2.cs @@ -218,7 +218,7 @@ namespace UnityEngine.UI.Extensions 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); }