Seneral / Node_Editor_Framework

A flexible and modular Node Editor Framework for creating node based displays and editors in Unity
https://nodeeditor.seneral.dev
MIT License
2k stars 415 forks source link

Node Port GetConnectedChildren generates garbage #168

Closed lucasmontec closed 5 years ago

lucasmontec commented 5 years ago

It instantiates a list every call, that can be changed to just clear a list.

public List<Node> GetConnectedChildren() { children.Clear(); foreach (var cnn in connections) { children.Add(cnn.node); } return children; }

SlimeQ commented 5 years ago

Where is this located? I can't find such a function anywhere in the code base