Skip to content

Commit 4b7b197

Browse files
committed
Added function to update ports locally + moved relay to utility category
1 parent a1be720 commit 4b7b197

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Assets/com.alelievr.NodeGraphProcessor/Runtime/Elements/BaseNode.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,20 @@ public bool UpdateAllPorts()
235235
return changed;
236236
}
237237

238+
/// <summary>
239+
/// Update all ports of the node without updating the connected ports. Only use this method when you need to update all the nodes ports in your graph.
240+
/// </summary>
241+
public bool UpdateAllPortsLocal()
242+
{
243+
bool changed = false;
244+
245+
foreach (var field in nodeFields)
246+
changed |= UpdatePortsForFieldLocal(field.Value.fieldName);
247+
248+
return changed;
249+
}
250+
251+
238252
/// <summary>
239253
/// Update the ports related to one C# property field (only for this node)
240254
/// </summary>

Assets/com.alelievr.NodeGraphProcessor/Runtime/Elements/RelayNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Linq;
66
using System;
77

8-
[System.Serializable, NodeMenuItem("Custom/Relay")]
8+
[System.Serializable, NodeMenuItem("Utils/Relay")]
99
public class RelayNode : BaseNode
1010
{
1111
const string packIdentifier = "_Pack";

0 commit comments

Comments
 (0)