diff --git a/Runtime/Scripts/Controls/Sliders/BoxSlider.cs b/Runtime/Scripts/Controls/Sliders/BoxSlider.cs index 9360300..ce0e6b4 100644 --- a/Runtime/Scripts/Controls/Sliders/BoxSlider.cs +++ b/Runtime/Scripts/Controls/Sliders/BoxSlider.cs @@ -367,5 +367,14 @@ namespace UnityEngine.UI.Extensions eventData.useDragThreshold = false; } + public void SetXWithoutNotify(float x) + { + SetX(x, false); + } + + public void SetYWithoutNotify(float y) + { + SetY(y, false); + } } } diff --git a/Runtime/Scripts/Effects/Gradient2.cs b/Runtime/Scripts/Effects/Gradient2.cs index b0060df..cbb0485 100644 --- a/Runtime/Scripts/Effects/Gradient2.cs +++ b/Runtime/Scripts/Effects/Gradient2.cs @@ -231,7 +231,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); }