From 1b4e3a449d82bfb18361721ea7fdbe32694bd4f6 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 1 Dec 2020 09:29:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Unity2020`=E4=B8=8A=E6=96=B0?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=9A=84=E5=9B=BE=E8=A1=A8=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E7=BB=98=E5=88=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/XCharts/CHANGELOG-EN.md | 1 + Assets/XCharts/CHANGELOG.md | 1 + Assets/XCharts/Runtime/Internal/BaseGraph.cs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Assets/XCharts/CHANGELOG-EN.md b/Assets/XCharts/CHANGELOG-EN.md index 096dc850..1f1033e8 100644 --- a/Assets/XCharts/CHANGELOG-EN.md +++ b/Assets/XCharts/CHANGELOG-EN.md @@ -1,6 +1,7 @@ # 更新日志 +* (2020.12.01) fixed an issue where a newly created chart on `Unity2020` could not be drawn properly * (2020.11.22) Release `v1.6.2` version * (2020.11.22) Fixed an issue where `LineChart` draws an exception when the data is too dense #99 * (2020.11.21) Fixed an issue where the scale position of `LineChart` could be abnormal if `alignWithLabel` was `true` diff --git a/Assets/XCharts/CHANGELOG.md b/Assets/XCharts/CHANGELOG.md index 5077bea8..c3e69c1c 100644 --- a/Assets/XCharts/CHANGELOG.md +++ b/Assets/XCharts/CHANGELOG.md @@ -1,6 +1,7 @@ # 更新日志 +* (2020.12.01) 修复`Unity2020`上新创建的图表无法正常绘制的问题 * (2020.11.22) 发布`v1.6.2`版本 * (2020.11.22) 修复`LineChart`在数据过于密集时折线绘制异常的问题 #99 * (2020.11.21) 修复`LineChart`的刻度位置在`alignWithLabel`为`true`时可能异常的问题 diff --git a/Assets/XCharts/Runtime/Internal/BaseGraph.cs b/Assets/XCharts/Runtime/Internal/BaseGraph.cs index a72a15ac..4f8fd8f0 100644 --- a/Assets/XCharts/Runtime/Internal/BaseGraph.cs +++ b/Assets/XCharts/Runtime/Internal/BaseGraph.cs @@ -12,6 +12,7 @@ using UnityEngine.EventSystems; namespace XCharts { + [RequireComponent(typeof(CanvasRenderer))] public partial class BaseGraph : MaskableGraphic, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, IBeginDragHandler, IPointerClickHandler, IDragHandler, IEndDragHandler, IScrollHandler @@ -213,6 +214,7 @@ namespace XCharts protected override void OnPopulateMesh(VertexHelper vh) { + Debug.LogError("baseGraph:OnPopulateMesh"); vh.Clear(); DrawBackground(vh); DrawGraphic(vh);