mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!W(NodePort) 刷新ValueType,外部通过SerializedProperty改变了port的顺序,但是实例的valueType还是老的,所以制空一下
This commit is contained in:
parent
ec7133d862
commit
2bcfbc85a4
@ -32,6 +32,14 @@ namespace XNode {
|
|||||||
public Node node { get { return _node; } }
|
public Node node { get { return _node; } }
|
||||||
public bool IsDynamic { get { return _dynamic; } }
|
public bool IsDynamic { get { return _dynamic; } }
|
||||||
public bool IsStatic { get { return !_dynamic; } }
|
public bool IsStatic { get { return !_dynamic; } }
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
public void RefreshValueType()
|
||||||
|
{
|
||||||
|
valueType = null;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
public Type ValueType {
|
public Type ValueType {
|
||||||
get {
|
get {
|
||||||
if (valueType == null && !string.IsNullOrEmpty(_typeQualifiedName)) valueType = Type.GetType(_typeQualifiedName, false);
|
if (valueType == null && !string.IsNullOrEmpty(_typeQualifiedName)) valueType = Type.GetType(_typeQualifiedName, false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user