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

Output with Properties #208

Open dannymate opened 2 years ago

dannymate commented 2 years ago

Allowed Properties to be used with the OutputAttribute. I switched from using FieldInfo the MemberInfo. I needed to create a few helper methods to mirror the functionality you were using.

Example: image image

Simplifies passthrough nodes like the FloatNode in the example. Allows you to generate a random number for each edge individually.

These are just a couple of things I've thought of for using Properties as ports.

I also have a branch that goes through and changes most references to FieldInfo/field to member for consistency here: https://github.com/dannymate/NodeGraphProcessor/tree/FieldInfo-To-MemberInfo. I didn't put it in this request in case you thought it was superfluous.