From 0992ad3df27af19a09ed5cabcfc655138508e80f Mon Sep 17 00:00:00 2001 From: "Simon (darkside) Jackson" Date: Tue, 22 Sep 2015 20:55:14 +0100 Subject: [PATCH] Patch fix to UI circle, update thickness to use float instead of int Missed in port from 4.6 code update --HG-- branch : develop_5.2 --- Scripts/Primatives/UICircle.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Primatives/UICircle.cs b/Scripts/Primatives/UICircle.cs index 819c416..1269412 100644 --- a/Scripts/Primatives/UICircle.cs +++ b/Scripts/Primatives/UICircle.cs @@ -13,7 +13,7 @@ namespace UnityEngine.UI.Extensions [Range(0, 100)] public int fillPercent = 100; public bool fill = true; - public int thickness = 5; + public float thickness = 5; [Range(0, 360)] public int segments = 360; @@ -49,7 +49,7 @@ namespace UnityEngine.UI.Extensions void Update() { - this.thickness = (int)Mathf.Clamp(this.thickness, 0, rectTransform.rect.width / 2); + this.thickness = (float)Mathf.Clamp(this.thickness, 0, rectTransform.rect.width / 2); } protected UIVertex[] SetVbo(Vector2[] vertices, Vector2[] uvs)