alelievr / NodeGraphProcessor

Node graph editor framework focused on data processing using Unity UIElements and C# 4.6
https://github.com/alelievr/NodeGraphProcessor/projects/2
MIT License
2.28k stars 379 forks source link

[Enhance] Prioritize node created from assets #222

Open Looooong opened 2 years ago

Looooong commented 2 years ago

For example, when drag&dropping asset into a graph, the node that implements ICreateNodeFrom<CustomRenderTexture> should be prioritized over the node that implements ICreateNodeFrom<Texture>, because CustomRenderTexture is the subclass of Texture.

BaseGraphView.nodeTypePerCreateAssetType is changed from Dictionary to SortedDictionary to support this behaviour.