I got a generic interface with 2 inputs and 1 output
and a few classes implementing the interface, eg Add, Multiply, etc.
For specific combinations of Inputs, which might come up during runtime, I got non-generic implementations
As expected, this works fine as long as I connect a specific type (of the types that are supported by my classes, eg Float32, Vector3, etc…)
However, while I do know all types which will get connected will be supported by my classes, I don’t know them upfront
What to do? Am I setting this up right?
(For completeness: this is a simplified version of my problem - what I’m trying to do is, during runtime, build a spread of instances of some class, where each instance of this class holds some modifiers, which operate on different types per instance. So one slice of the spread/instance of the class might operate on Float32, another on Vector2, another on a combination of them, etc…I know all possible type combinations and have implementations for all of them, I just don’t know which ones are going to come up…)
GenericInterface.vl (24.0 KB)