1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00
This commit is contained in:
Icarus 2020-08-03 01:16:16 +08:00
parent 8454b1f1a6
commit 4ab79fe0bb

View File

@ -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;