diff --git a/Scripts/Node.cs b/Scripts/Node.cs index 0e0449f..ddc43ea 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -202,6 +202,10 @@ namespace XNode { foreach (NodePort port in Ports) port.ClearConnections(); } + public override int GetHashCode() { + return JsonUtility.ToJson(this).GetHashCode(); + } + /// Mark a serializable field as an input port. You can access this through [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] public class InputAttribute : Attribute {