Reply To: Parameters not showing in Execute Function

NodeCanvas Forums Support Parameters not showing in Execute Function Reply To: Parameters not showing in Execute Function

#10086
Gavalakis
Keymaster

Hey,
You are welcome, and thanks! I’m glad you like NC 🙂

Regarding your question, I am not exactly sure what you mean. Do you mean if there is an advantage of creating a custom BBVariable class for your type (like BBActor : BBVariable{}) ?
If this is what you mean, then there is no much point in it unless you don’t know before hand if you want to use a blackboard variable or provide an new object directly, like the floats, string etc BBVariables do. Since if you want to use a new object instance then you would simply declare it as normal in a field, whereas if you wanted to use a blackboard variable instead you can use:

[VariableType(typeof(Actor))]
public BBVar myActor;

This will show you a dropdown with all ‘Actor’ type variables within the blackboard to select one from. The only downside of this is that you need to cast the .value to your type. So creating a custom BBVariable of your type, solves this problem if it is at all. If it’s not, then there is not really a point, no : )

I hope I didn’t get confusing again. Let me know if so 🙂

By the way, please remember to un-comment those lines after you upgrade, until I figure out how I should go about it 🙂 Sorry 🙂

Best regards.

Join us on Discord: https://discord.gg/97q2Rjh