Reply To: Probability Selector Copy & Paste Bug

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

#14624
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.

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