Reply To: MultipleChoiceNode modify choices in runtime

Forums 💬 NodeCanvas ⚙️ Support MultipleChoiceNode modify choices in runtime Reply To: MultipleChoiceNode modify choices in runtime

#15221
Gavalakis
Keymaster

    Hello,
    There is no built-in way to achieve this at the moment, but you can access the node with ‘Graph.GetNodeWithTag(“tagName”)’ (just make sure to add a tag to the node from within its inspector). The availableChoices is also private at the moment and there are no AddChoice/RemoveChoice methods, therefore you will want to make it public to access it and add choices to it.

    With that said your suggestions is interesting to add as built-in. Would adding an optional pre-condition (condition task) check for each choice to filter whether it should be shown or not, work for what you want to achieve and as a feature in general?

    Let me know.