From 21cd72b9953fd01a7073c9a58fcaae28f1b995c3 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 27 Dec 2024 22:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96DrawBackground=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/Utilities/UIHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Internal/Utilities/UIHelper.cs b/Runtime/Internal/Utilities/UIHelper.cs index 5fac7f8d..661d4130 100644 --- a/Runtime/Internal/Utilities/UIHelper.cs +++ b/Runtime/Internal/Utilities/UIHelper.cs @@ -37,7 +37,7 @@ namespace XCharts.Runtime DrawBackground(vh, background, backgroundColor); } - public static void DrawBackground(VertexHelper vh, Background background, Color32 color) + public static void DrawBackground(VertexHelper vh, Background background, Color32 color, float smoothness = 2) { if (!background.show) return; @@ -47,7 +47,7 @@ namespace XCharts.Runtime var borderColor = background.borderStyle.GetRuntimeBorderColor(); var cornerRadius = background.borderStyle.GetRuntimeCornerRadius(); UGL.DrawRoundRectangleWithBorder(vh, background.rect, color, color, cornerRadius, - borderWidth, borderColor); + borderWidth, borderColor, 0, smoothness); } internal static void InitBackground(UIComponent component)