修复Legendformatter在数据变更时没有自动刷新的问题

This commit is contained in:
monitor1394
2023-11-11 22:46:08 +08:00
parent 83db4dd951
commit 509bd97741
3 changed files with 6 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ namespace XCharts.Example
{
UpdateData();
}
else if (Input.GetKeyDown(KeyCode.C))
{
chart.ClearData();
}
lastAddTime += Time.deltaTime;
if (loopAdd && lastAddTime >= loopAddTime)
{