Reply To: Parameters not showing in Execute Function

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

#19560
Gavalakis
Keymaster

    Hello,

    The Execute Function (and other ScriptControl tasks) read the available types to show which are defined within the BBVariableSet class. There are 2 solutions here, but the easiest one is to open up BBVariables.cs and go at the very last defined class called BBVariableSet.
    Then un-comment from the fields declaration:
    //[SerializeField]
    //private BBVar systemObjectValue = new BBVar();

    and from within the allVariables property un-comment at the very end:
    //bbVarSet.Add(systemObjectValue);

    Now with that done ALL parameter/return etc types will be shows to be selected even if not directly supported by the blackboard available types. (But you can still use ANY type with Dynamic Variables).

    Unfortunately this solution needs you to change the source code for now and the reason I’ve not commented them out for realease already, is that it might become confusing for some people to show all types even if not possible to add them in the blackboard directly.

    The other solution if you don’t want to change the source code is to make use the fact that BBVariableSet is partial. Let me know if you want code.

    Hope that wasn’t confusing.
    Cheers!