mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 18:30:14 +00:00
优化性能
This commit is contained in:
@@ -656,10 +656,12 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Background m_Background;
|
||||||
public Color32 GetChartBackgroundColor()
|
public Color32 GetChartBackgroundColor()
|
||||||
{
|
{
|
||||||
var background = GetChartComponent<Background>();
|
if (m_Background == null) m_Background = GetChartComponent<Background>();
|
||||||
return theme.GetBackgroundColor(background);
|
//var background = GetChartComponent<Background>();
|
||||||
|
return theme.GetBackgroundColor(m_Background);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user