From 2bcfbc85a4c61c89aa737b480d4e6cd2ad9dfa13 Mon Sep 17 00:00:00 2001 From: Icarus <1375400884@qq.com> Date: Sun, 8 Dec 2019 21:03:02 +0800 Subject: [PATCH] =?UTF-8?q?!W(NodePort)=20=E5=88=B7=E6=96=B0ValueType,?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E9=80=9A=E8=BF=87`SerializedProperty`?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E4=BA=86port=E7=9A=84=E9=A1=BA=E5=BA=8F,?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E5=AE=9E=E4=BE=8B=E7=9A=84valueType=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E8=80=81=E7=9A=84,=E6=89=80=E4=BB=A5=E5=88=B6?= =?UTF-8?q?=E7=A9=BA=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/NodePort.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index d8a36b6..b6fadb4 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -32,6 +32,14 @@ namespace XNode { public Node node { get { return _node; } } public bool IsDynamic { get { return _dynamic; } } public bool IsStatic { get { return !_dynamic; } } + +#if UNITY_EDITOR + public void RefreshValueType() + { + valueType = null; + } +#endif + public Type ValueType { get { if (valueType == null && !string.IsNullOrEmpty(_typeQualifiedName)) valueType = Type.GetType(_typeQualifiedName, false);