Resolved issue in GridRenderer causing issues on OnPopulateMesh due to SetDirty being called on resetting RelativeSize.

Also updated LineRenderer to be more open to extension by setting private properties to internal

Resolves #152
release
Simon Jackson 2017-07-08 09:24:09 +01:00
parent af1f9beeb0
commit 608a7bdf6a
2 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ namespace UnityEngine.UI.Extensions
protected override void OnPopulateMesh(VertexHelper vh)
{
RelativeSize = true;
relativeSize = true;
int ArraySize = (GridRows * 3) + 1;
if(GridRows % 2 == 0)

View File

@ -50,20 +50,20 @@ namespace UnityEngine.UI.Extensions
private static readonly Vector2[] endUvs = new[] { UV_TOP_CENTER, UV_BOTTOM_CENTER, UV_BOTTOM_RIGHT, UV_TOP_RIGHT };
[SerializeField]
private Rect m_UVRect = new Rect(0f, 0f, 1f, 1f);
internal Rect m_UVRect = new Rect(0f, 0f, 1f, 1f);
[SerializeField]
protected Vector2[] m_points;
internal Vector2[] m_points;
[SerializeField]
private float lineThickness = 2;
internal float lineThickness = 2;
[SerializeField]
private bool relativeSize;
internal bool relativeSize;
[SerializeField]
private bool lineList;
internal bool lineList;
[SerializeField]
private bool lineCaps;
internal bool lineCaps;
[SerializeField]
private int bezierSegmentsPerCurve = 10;
internal int bezierSegmentsPerCurve = 10;
public float LineThickness
{