增加Remove All Chart Object移除图表下的所有子节点

This commit is contained in:
monitor1394
2020-09-18 22:24:51 +08:00
parent 166a94012d
commit 9117a198a1
5 changed files with 14 additions and 1 deletions

View File

@@ -134,5 +134,13 @@ namespace XCharts
warningInfo = CheckHelper.CheckChart(this);
return warningInfo;
}
/// <summary>
/// 移除所有图表子节点,会自动重现初始化。
/// </summary>
public void RemoveChartObject()
{
ChartHelper.DestroyAllChildren(transform);
}
}
}