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