VisualShaderNodeCustom Improvement ideas. #6069
donn-xx
started this conversation in
Engine Core
Replies: 1 comment 1 reply
-
You can define a single function for multiple custom nodes using GlobalExpression node instead. I think adding an extra parser makes it too complex and may have undesirable performance penalty. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Global Code Problems
In _get_global_code() there is no way to return a string that caters for whether the global code already contains a function of the name you wish to return.
Edit
It's more subtle than this. Custom node class_name A and another class_name B that return the same global code will cause the clashing names—and there's no access in gdscript from A<-->B.
Solution:
Port Types
It would be great to have a Variant port (in and out) so that it's possible to make pass-through nodes, or nodes that have a chance to convert things and pass them out.
UI Fields in slots
Custom nodes need combo-boxes, text boxes, sliders and other UI goodies.
Hope that made sense.
Beta Was this translation helpful? Give feedback.
All reactions