I’m wanting to have two nodes one with a value input and another with a value output, the reason I need it to be a text instead of the real Type…
Imagine it like, a type-casted string, but without creating any new classes, (where nodes can specify string of type Country, or string of type Weapon, and other nodes that return those types would be hooked up, but this needs to be dynamic, so I can change these things at run time)
Is this possible at all? I looked into manually creating ValueInput’s but I can’t find any string location for a typecasting like this, but maybe I need to just make my own that extends from ValueInput?
I am not really sure I completely understood what you are after 🙂
Are you referring to creating a custom node code which has a string value input?
If so, this can be done in many ways, but the easiest one is creating what is called a SimplexNode [DOCS LINK].
here is a very simple example of a node with a string ValueInput and a string ValueOutput (as well as Flow Input and Out):
//do something with the input value, return something
returnvalue;
}
}
Is that close to what you are after?
Please refer to the docs link above for a reference to the various SimplexNode types you can derive from and how to use them, but if you still have any questions at all, please let me know.
Thank you.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.