增加Radar雷达组件更多样式配置参数支持

This commit is contained in:
monitor1394
2019-11-05 18:58:32 +08:00
parent 6b9e8e3898
commit 754e4f2a40
12 changed files with 32516 additions and 2292 deletions

View File

@@ -17,7 +17,7 @@ namespace XCharts
public static GameObject Get(string name, Transform parent, SerieLabel label, Font font, Color color, SerieData serieData)
{
GameObject element;
if (m_Stack.Count == 0)
if (m_Stack.Count == 0 || !Application.isPlaying)
{
element = ChartHelper.AddSerieLabel(name, parent, font,
color, label.backgroundColor, label.fontSize, label.fontStyle, label.rotate,
@@ -39,7 +39,8 @@ namespace XCharts
ChartHelper.SetActive(element, false);
//if (m_Stack.Count > 0 && ReferenceEquals(m_Stack.Peek(), element))
// Debug.LogError("Internal error. Trying to destroy object that is already released to pool." + element.name);
m_Stack.Push(element);
if (Application.isPlaying)
m_Stack.Push(element);
}
public static void ReleaseAll(Transform parent)