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.2release
parent
6dd47a9321
commit
0992ad3df2
|
@ -13,7 +13,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
[Range(0, 100)]
|
[Range(0, 100)]
|
||||||
public int fillPercent = 100;
|
public int fillPercent = 100;
|
||||||
public bool fill = true;
|
public bool fill = true;
|
||||||
public int thickness = 5;
|
public float thickness = 5;
|
||||||
[Range(0, 360)]
|
[Range(0, 360)]
|
||||||
public int segments = 360;
|
public int segments = 360;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
|
|
||||||
void Update()
|
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)
|
protected UIVertex[] SetVbo(Vector2[] vertices, Vector2[] uvs)
|
||||||
|
|
Loading…
Reference in New Issue