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

Error: No ValueConnectionType could be found or created with name 'GameObject'! #176

Closed oxi-dev0 closed 5 years ago

oxi-dev0 commented 5 years ago

I have created my own nodes, but custom Connections cause this error: "No ValueConnectionType could be found or created with name 'GameObject'!", I cannot find where I can define new connection types.

Any help would be appreciated, thanks

Seneral commented 5 years ago

It's outlined in the documentation here. Following that, it should be pretty straightforward. Although one thing to take care of, depending on what you want to do, is that GameObjects have restrictions in regards to how they can be stored in nodes. If you reference Prefabs, that's fine, these references will be stored in the canvas asset. If you reference GameObjects in scenes however, they will not be stored in the canvas asset, because an asset cannot reference a scene-only objects. If you do need to store Scene GOs, you'll need to save the canvas itself inside the scene (theres a menu item for that). This might or might not affect you, just a heads up:)