From 2a37530aeab2594884711d7cc8b3db91f39fea35 Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Sat, 24 Dec 2022 12:49:39 +0000 Subject: [PATCH] Added SetArc method to UICircle as requested Resolves: https://github.com/Unity-UI-Extensions/com.unity.uiextensions/issues/280 --- Runtime/Scripts/Primitives/UICircle.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Runtime/Scripts/Primitives/UICircle.cs b/Runtime/Scripts/Primitives/UICircle.cs index 8ebd609..3f5fdb4 100644 --- a/Runtime/Scripts/Primitives/UICircle.cs +++ b/Runtime/Scripts/Primitives/UICircle.cs @@ -155,6 +155,12 @@ namespace UnityEngine.UI.Extensions SetVerticesDirty(); } + public void SetArc(float arc) + { + Arc = arc; + SetVerticesDirty(); + } + public void SetArcSteps(int steps) { ArcSteps = steps;