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
2.01k stars 414 forks source link

Alternate comparison for node types when connecting #33

Closed pmhpereira closed 8 years ago

pmhpereira commented 8 years ago

Users might want to create similar input/outputs classes of the same type but with different colors/knob textures.

These classes should be compatible, but their respective nodes can't be connected because the current comparison uses the class type of each ITypeDeclaration. (p.e. FloatType vs FloatType2)

Changing this comparison to use ITypeDeclaration.Type instead, would allow FloatType to connect to FloatType2, because both their Type is typeof(float).

Seneral commented 8 years ago

Didn't thought on that;) Thanks!