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);