From 4ab79fe0bb846ca370dda9276057aed7925bf769 Mon Sep 17 00:00:00 2001 From: Icarus <1375400884@qq.com> Date: Mon, 3 Aug 2020 01:16:16 +0800 Subject: [PATCH] !WT --- Scripts/NodePort.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index 5f606a2..fea85c8 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -19,7 +19,7 @@ namespace XNode { } } - public IO direction { + public IO direction { get { return _direction; } internal set { _direction = value; } } @@ -48,7 +48,7 @@ namespace XNode { valueType = null; } #endif - + public Type ValueType { get { if (valueType == null && !string.IsNullOrEmpty(_typeQualifiedName)) valueType = Type.GetType(_typeQualifiedName, false); @@ -59,10 +59,11 @@ namespace XNode { if (value != null) _typeQualifiedName = value.AssemblyQualifiedName; } } - + private Type valueType; #if UNITY_EDITOR public const string FIELDNAMEEDITOR = nameof(_fieldName); + public const string ConnectionsEditor = nameof(connections); #endif [SerializeField] private string _fieldName; [SerializeField] private Node _node;