Patch fix for UILineRenderer
parent
dff07c6952
commit
830a4466eb
|
@ -466,7 +466,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
protected override void OnEnable()
|
protected override void OnEnable()
|
||||||
{
|
{
|
||||||
base.OnEnable();
|
base.OnEnable();
|
||||||
if (m_points.Length == 0)
|
if (m_points?.Length == 0)
|
||||||
{
|
{
|
||||||
m_points = new Vector2[1];
|
m_points = new Vector2[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue