Behavior tree shared by various prefabs?

NodeCanvas Forums General Discussion Behavior tree shared by various prefabs?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8850

    Hi, I have a series of prefab characters that should share the same behavior tree, but despite my efforts I couldn’t find a way of centralizing the behavior tree in a way that I would edit one of its instances and automatically replicate the changes to the behavior tree inserted in the remaining prefabs.

    My question is: is it possible at all? I tried to transform the behavior tree in a prefab and add it to the character prefabs, but it seems that the connection to the BT prefab is lost once I apply the character’s prefab (besides, the blackboard isn’t available that way, so I guess this is the wrong way of doing it, nevertheless).

    I’m using NodeCanvas 1.6.1.

    Thanks and best regards,
    Edgard

    #8851
    Gavalakis
    Keymaster

    Hello Edgard,

    Is there a reason you don’t upgrade to version 2? 🙂

    Regarding you question, I just tried this and works:

    – Create a prefab BehaviourTree.
    – Create a prefab BehaviourTreeOwner gameobject.
    – Assign the prefab BT to the prefab BTOwner.
    – Add the prefab BTOwner in the scene.
    – Hit Apply on the instance.

    The reference to the prefab BT graph is not lost.
    Can you confirm?

    Cheers!

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

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