Feature Request: Local Nested SubTrees

Forums 💬 NodeCanvas 🗨️ General Discussion Feature Request: Local Nested SubTrees

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14543
    sanity
    Participant

      Tittle says it all really. It would be nice if tree read whether root tree is local and would bind itself if tit were. I use many tasks that communicate with child GameObjects such as “weapon” and currently Sub trees tasks cannot set their agent as that game object and all workarounds i thought of involve many extra nodes.

      Thanks!

      #14544
      Gavalakis
      Keymaster

        Hello there,

        I am realy looking into this feature, but there are just some things and make it very difficult to implement properly and without unhappy accidents.

        Currently the way to parametrize subtrees would be using Blackboard variables.
        Since blackboards live in the GraphOwner game object and thus in the scene (in case they are not prefabs anyways), they can have scene object references.
        Nodes can then use those variables instead of direct drag&drop references 🙂

        Cheers!

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