File tree Expand file tree Collapse file tree 3 files changed +49
-1
lines changed
Expand file tree Collapse file tree 3 files changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,19 @@ Draw data chart in Unity Editor.
66
77[ 中文] ( ./README_CN.md )
88
9+
10+ ## Supported Unity Version
11+
12+ Unity 2021.3 and later.
13+
14+
15+ ## Installation
16+
17+ [ ![ openupm] ( https://img.shields.io/npm/v/com.greenbamboogames.editordatachart?label=openupm®istry_uri=https://package.openupm.com )] ( https://openupm.com/packages/com.greenbamboogames.editordatachart/ )
18+
19+ Install this package via [ OpenUPM] ( https://openupm.com/packages/com.greenbamboogames.editordatachart ) .
20+
21+
922## API
1023
1124- class LineChart2DWindow
Original file line number Diff line number Diff line change 1+ # Unity Editor数据图表工具
2+
3+ 在Unity Editor绘制数据图表。
4+
5+ ![ Example] ( ./Documents~/imgs/example_line_chart_2d.png )
6+
7+ [ English] ( ./README.md )
8+
9+
10+ ## 支持的Unity版本
11+
12+ Unity 2021.3 或更新版本。
13+
14+
15+ ## 安装
16+
17+ [ ![ openupm] ( https://img.shields.io/npm/v/com.greenbamboogames.editordatachart?label=openupm®istry_uri=https://package.openupm.com )] ( https://openupm.com/packages/cn.greenbamboogames.editordatachart/ )
18+
19+ 从 [ OpenUPM] ( https://openupm.cn/packages/com.greenbamboogames.editordatachart ) 安装。
20+
21+
22+ ## API
23+
24+ - class LineChart2DWindow
25+ - static void Open(string title): 打开数据图表窗口。
26+ - void SetColor(string category, Color color): 设置类别颜色。
27+ - void AddData(string category, Vector2 data): 向类别中添加数据。
28+ - bool RemoveData(string category, int index): 从类别中移除数据。
29+ - bool ClearData(string category): 清空类别中的数据(将会删除此类别)。
30+ - void ClearAllData(): 清空所有类别中的数据(将会删除所有类别)。
31+ - int FindDataIndex(string category, Predicate<Vector2 > match): 在类别中查找指定数据的索引。
32+ - int FindDataLastIndex(string category, Predicate<Vector2 > match): 在类别中查找指定数据的最后一个索引。
33+ - void SetChartScale(float xValueLength, float yMinValue, float yMaxValue): 设置图表的显示数值范围。
34+ - void RemoveChartScale(): 移除图表的显示数值范围。
35+
Original file line number Diff line number Diff line change 11{
22 "name" : " com.greenbamboogames.editordatachart" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 1.0 .0" ,
44 "displayName" : " Editor Data Chart!" ,
55 "description" : " Draw data chart in Unity Editor." ,
66 "unity" : " 2021.3" ,
You can’t perform that action at this time.
0 commit comments