修复SerieLabel设置color不生效的问题

This commit is contained in:
monitor1394
2019-11-16 20:15:35 +08:00
parent eddbe3ff5e
commit 2ef3051d03
2 changed files with 3 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace XCharts
{
@@ -29,6 +30,7 @@ namespace XCharts
element = m_Stack.Pop();
element.name = name;
element.transform.SetParent(parent);
element.GetComponentInChildren<Text>().color = color;
ChartHelper.SetActive(element, true);
}
return element;