A List BBParameter variable?

Forums 💬 NodeCanvas 🗨️ General Discussion A List BBParameter variable?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13717
    rayriver
    Participant

      I added a List<BBParameter<int>> variable to my ActionTask. After I click “Add Element” button, It shows “No current Blackboard reference”. I cannot bind the element 0 to the Blackboard variable. What should I do?

      #13719
      Gavalakis
      Keymaster

        Hello,

        There is a bug in refreshing BBParameters within a list when adding them, which I will of course need to fix.
        For a quick and dirty solution, please open up Task.cs file and add this piece of code anywhere in the class:

        This will create a context menu option (shown when clicking the gear icon or right clicking the title of the task).
        Once you have added the list elements, please select the “Refresh” option from that menu and the blackboard will be set.

        Please note that this will only work in version v2.8+ (since [ContextMenu] attribute possibility was added in v2.8 only).
        Once again, this needs to be fixed in future version, probably a dot version hotfix.

        Thank you!

        #13718
        rayriver
        Participant

          Thank you for the reply!

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.