修复Unity2020上新创建的图表无法正常绘制的问题

This commit is contained in:
monitor1394
2020-12-01 09:29:11 +08:00
parent 9ebbdaba28
commit 1b4e3a449d
3 changed files with 4 additions and 0 deletions

View File

@@ -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`

View File

@@ -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`时可能异常的问题

View File

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