Is there currently any kind of native support for something like "mixins" for nodes and ports? #118
Unanswered
edmundmunday
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sweet library btw - just to start off with. I love using visual scripting in Unity and I'm working on an implementation of Flume for our gov-tech CRM startup to enable customers to implement simple custom logic in the app.
I have a set of different graphs, each one relating to a certain "entity" in our CRM product. Each of these graphs has a different "root node", which is the entity being mutated and they also have a series of "entity specific" nodes to work with and manipulate that entity.
However, they also have a huge number of "generic" nodes that are shared across all the graphs for more general functionality.
Currently, I'm defining these generic nodes/ports in separate files as objects and then importing them to the config for each graph and adding them manually which is a LOT of duplication. I'm assuming I can probably do something like store them in an array of generic node/port definitions and iterate over that array, calling
config.addNodeType
in each loop of the iteration?Before I go and implement that though, I just wanted to check if there was something already in the library to support this use case?
If not, would you be interested in me raising a PR for this functionality once I've written something that works?
Beta Was this translation helpful? Give feedback.
All reactions