优化Line的默认配置效果

This commit is contained in:
monitor1394
2023-07-31 07:29:53 +08:00
parent ec89828c67
commit 0ffc6d7efe
6 changed files with 19 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ namespace XCharts.Example
[DisallowMultipleComponent]
public class Example_TestSerie : MonoBehaviour
{
public int maxCache = 100;
BaseChart chart;
int timestamp;
@@ -23,6 +22,14 @@ namespace XCharts.Example
chart.GetSerie(0).radius[1] = Random.Range(50, 80);
chart.SetAllDirty();
}
else if (Input.GetKeyDown(KeyCode.W))
{
chart.GetSerie(0).lineStyle.width = Random.Range(1, 5);
}
else if (Input.GetKeyDown(KeyCode.S))
{
chart.GetSerie(0).symbol.size = Random.Range(1, 10);
}
}
}
}