Hi,
as written in the title, I’m creating a function which uses an enum variable in order to manage the different logic flows.
At first I defined a c++ function that returns an array of a custom struct and the resulting node was something like this.
I find the combo box for the enum quite useful for me instead of declaring a variable to store the value ad assign it as input in the node.
Thanks for the answer. I agree with you
I believe it is due to the fact I pass the variable by reference.
I tried to remove the “&” after the type and I got an error and couldn’t compile.
I solved by removing both the “&” and “const” qualifiers from that variable. I wasn’t sure it could work out like this.
I’m not expert in programming but I thinks it depends on the fact that since I passes the variable as reference, you need to have something to reference to. the combo box within the node doesn’t refer to any memory address so you can’t use that.