增加XChartsSettingseditorShowAllListData参数配置是否在Inspector中显示列表的所有数据

This commit is contained in:
monitor1394
2021-01-19 23:18:41 +08:00
parent 68da7221b8
commit fb549bd0c7
5 changed files with 9 additions and 5 deletions

View File

@@ -427,7 +427,7 @@ namespace XCharts
while (listSize > m_Datas.arraySize) m_Datas.arraySize++;
while (listSize < m_Datas.arraySize) m_Datas.arraySize--;
}
if (listSize > 30)
if (listSize > 30 && !XChartsSettings.editorShowAllListData)
{
int num = listSize > 10 ? 10 : listSize;
for (int i = 0; i < num; i++)