Reply To: [BUG] Swapping Subtree at runtime doesnt update variable

NodeCanvas Forums Support [BUG] Swapping Subtree at runtime doesnt update variable Reply To: [BUG] Swapping Subtree at runtime doesnt update variable

#12661
dyconic
Participant

Our activities have a tree that defines their behaviour, this is put into a subtree on the main behaviour of the npcs that is dynamically linked. So whenever we change activity , we change the behaviourtree variable which is dynamically linked to the subtree node. Everything works fine when we swap to activities that have a different behaviour tree asset. However, when we switch to a different activity that has the same behaviourtree asset the variables don’t seem to be updated.

Currently we have done a workaround where we manually delete the subtree node, duplicate it and link it again at runtime whenever we need to swap activities.