From eb948f03d5ee059383acd546e4110c3ae6d5c62f Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 3 Jun 2024 08:12:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=B3=E7=B3=BB=E5=9B=BE?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/Data/GraphData.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Runtime/Internal/Data/GraphData.cs b/Runtime/Internal/Data/GraphData.cs index 2fbea247..b5fe2e9f 100644 --- a/Runtime/Internal/Data/GraphData.cs +++ b/Runtime/Internal/Data/GraphData.cs @@ -367,6 +367,15 @@ namespace XCharts.Runtime } } } + + public bool IsAllNodeInZeroPosition() + { + foreach (var node in nodes) + { + if (node.position != Vector3.zero) return false; + } + return true; + } } ///