Reply To: Probability Selector Copy & Paste Bug

Forums 💬 NodeCanvas ⚙️ Support Probability Selector Copy & Paste Bug Reply To: Probability Selector Copy & Paste Bug

#16749
Gavalakis
Keymaster

    Hello,
    Here is a quick fix (even though I will more properly handle this in the next version).
    Please open up PrioritySelector.cs and change the OnChildConnectedMethod to be like this:

    In a similar fashion, please open ProbabilitySelector.cs and change it to this:

    This handles the issue when duplicating a PrioritySelector along with connected children. If you duplicate a PrioritySelector alone however, you will still have original “weights” and when connecting a child node those will be used first before adding more.

    Thanks.