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

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

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