mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 01:40:06 +00:00
修复SerieLabel设置color不生效的问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user