From 8c1cc287765708eeb6fb5ec2a26b2e6d246bdf6e Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 23 Feb 2020 14:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E9=80=9F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=9A=84=E5=9B=BE=E8=A1=A8=E4=B8=8D=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E4=BA=8B=E4=BB=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/Editor/XChartEditor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/XCharts/Editor/XChartEditor.cs b/Assets/XCharts/Editor/XChartEditor.cs index 0a2a4ff0..fbfac0a8 100644 --- a/Assets/XCharts/Editor/XChartEditor.cs +++ b/Assets/XCharts/Editor/XChartEditor.cs @@ -8,6 +8,7 @@ using UnityEditor; using UnityEngine; using UnityEngine.UI; +using UnityEngine.EventSystems; namespace XCharts { @@ -28,6 +29,10 @@ namespace XCharts canvas.renderMode = RenderMode.ScreenSpaceOverlay; canvasObject.AddComponent(); canvasObject.AddComponent(); + var eventSystem = new GameObject(); + eventSystem.name = "EventSystem"; + eventSystem.AddComponent(); + eventSystem.AddComponent(); return canvas.transform; } }