From 17eb6cdae19b9e64b4b91249d7b6528485f0c7bb Mon Sep 17 00:00:00 2001 From: Icarus <1375400884@qq.com> Date: Sun, 8 Dec 2019 17:28:47 +0800 Subject: [PATCH] =?UTF-8?q?!W(Node=20Port)=20`=5FfieldName`=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=B8=B8=E9=87=8F?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E7=BB=99Editor=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/NodePort.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index dc69313..d8a36b6 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -60,6 +60,9 @@ namespace XNode { private Type valueType; private Type _typeConstraintBaseType; +#if UNITY_EDITOR + public const string FieldNameEditor = nameof(_fieldName); +#endif [SerializeField] private string _fieldName; [SerializeField] private Node _node; [SerializeField] private string _typeQualifiedName;