From c2aa222bbdcca8237344c917c8a736b1ed347180 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 23 Aug 2020 15:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/XCharts/Documentation/XCharts问答.md | 4 ++-- .../XCharts/Documentation/xcharts-questions-and-answers-EN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/XCharts/Documentation/XCharts问答.md b/Assets/XCharts/Documentation/XCharts问答.md index 59e82412..84a478b0 100644 --- a/Assets/XCharts/Documentation/XCharts问答.md +++ b/Assets/XCharts/Documentation/XCharts问答.md @@ -32,7 +32,7 @@ [QA 26:如何使用背景组件?有什么条件限制?](#如何使用背景组件?有什么条件限制) [QA 27:Mesh can not have more than 65000 vertices?](#Mesh_cannot_have_more_than_65000_vertices) [QA 28:为什么serie里设置的参数运行后又被重置了?](#为什么serie里设置的参数运行后又被重置了) -[QA 29:为什么升级到1.6.0版本后很多自定义颜色丢失了?应该如何升级?](#为什么升级到1.6.0版本后很多自定义颜色丢失了?应该如何升级) +[QA 29:为什么升级到1.6.0版本后很多自定义颜色丢失了?应该如何升级?](#为什么升级到1_6_0版本后很多自定义颜色丢失了?应该如何升级) ## 如何调整坐标轴与背景的边距 @@ -150,7 +150,7 @@ 答:检测下代码里是否调用了`RemoveData()`并重新添加`Serie`了。如果想保留`Serie`的配置可以只`ClearData()`,然后重新添加数据。 -## 为什么升级到1.6.0版本后很多自定义颜色丢失了?应该如何升级 +## 为什么升级到1_6_0版本后很多自定义颜色丢失了?应该如何升级 答:1.6.0版本为了减少隐式转换,将所有的绘制相关的`Color`都改为了`Color32`,所以会导致一些自定义的颜色的丢失。影响到的主要组件有:`ItemStyle`,`LineStyle`,`AreaStyle`,`Vessel`,`VisualMap`,`AxisSplitArea`,`AxisSplitLine`,`GaugeAxis`,`SerieLabel`等。可以用脚本[UpgradeChartColor.cs](https://github.com/monitor1394/unity-ugui-XCharts/blob/master/Assets/XCharts/Editor/Tools/UpgradeChartColor.cs)进行升级。 升级步骤如下: diff --git a/Assets/XCharts/Documentation/xcharts-questions-and-answers-EN.md b/Assets/XCharts/Documentation/xcharts-questions-and-answers-EN.md index 4d16d6a7..6a18b322 100644 --- a/Assets/XCharts/Documentation/xcharts-questions-and-answers-EN.md +++ b/Assets/XCharts/Documentation/xcharts-questions-and-answers-EN.md @@ -32,7 +32,7 @@ [QA 26: How do I use the background component? What are the conditions?](#How-do-I-use-the-background-component-What-are-the-conditions) [QA 27: Mesh can not have more than 65000 vertices?](#Mesh-cannot-have-more-than-65000-vertices) [QA 28: Why are the parameters set in Serie reset after they run?](#Why-are-the-parameters-set-in-Serie-reset-after-they-run) -[QA 29: Why are many custom colors lost after upgrading to 1.6.0? How should I upgrade?](#Why_are_many_custom_colors_lost_after_upgrading_to_1.6.0_How_should_I_upgrade) +[QA 29: Why are many custom colors lost after upgrading to 1.6.0? How should I upgrade?](#Why_are_many_custom_colors_lost_after_upgrading_to_1_6_0_How_should_I_upgrade) ## How-to-adjust-the-margin-between-the-axis-and-the=-background @@ -146,7 +146,7 @@ A: This is the limit of `UGUI` on the number of vertices for a single `Graphic`. A: Check whether `RemoveData()` and add new `Serie` in the code. If you want to keep the configuration of `Serie`, you can only `ClearData()` which just clear data and then readd the data to the old serie. -## Why_are_many_custom_colors_lost_after_upgrading_to_1.6.0_How_should_I_upgrade +## Why_are_many_custom_colors_lost_after_upgrading_to_1_6_0_How_should_I_upgrade A: In version `1.6.0`, in order to reduce implicit conversion, all drawing related `Color` was changed to `Color32`, so some custom colors were lost. The main components affected are: `ItemStyle`, `LineStyle`, `AreaStyle`, `Vessel`, `VisualMap`, `AxisSplitArea`, `AxisSplitLine`, `GaugeAxis`,`SerieLabel`, etc. Can use the script [UpgradeChartColor.cs](https://github.com/monitor1394/unity-ugui-XCharts/blob/master/Assets/XCharts/Editor/Tools/UpgradeChartColor.cs) to upgrade. The upgrade steps are as follows: