Fixed display exception of hidden gameObjects when enabling and disabling a chart #125

This commit is contained in:
monitor1394
2021-03-01 10:07:40 +08:00
parent 0936510cd8
commit 84a13e03e8
4 changed files with 4 additions and 22 deletions

View File

@@ -265,18 +265,6 @@ namespace XCharts
foreach (var drawSerie in m_DrawSeries) drawSerie.CheckComponent();
}
protected override void OnEnable()
{
base.OnEnable();
ChartHelper.ActiveAllObject(transform, true);
}
protected override void OnDisable()
{
base.OnDisable();
ChartHelper.ActiveAllObject(transform, false);
}
protected override void SetAllComponentDirty()
{
base.SetAllComponentDirty();