Reply To: Assigning sub tree at runtime – can't view when running

NodeCanvas Forums General Discussion Assigning sub tree at runtime – can't view when running Reply To: Assigning sub tree at runtime – can't view when running

#13166
bzwill
Participant

Correct – so it appeared like the attached image.

For now, I have moved to using an enum and explicitly embedding every subtree into the main tree, the problem obviously then goes away, but in effect I now have to make a very long switch statement. It’s fine either way, NC is already saving me sooo much development time, just the initial approach was my intuitive one, as it reflected more closely the way I was changing states in my previous implementation.

One other drawback that I had using the dynamic subtree, was I couldn’t find an ‘intentional’ way to ‘assume’ the blackboard it would have access to (inherit from the main tree and BT Owner) while designing them. What I did as a workaround was had a detached set subtree tasks on the main tree, and I would enter them from there, which gave me that blackboard to design with 🙂

Don’t know how unique my desire was to use dynamic subtrees, so can’t say if this would be useful for other people, but might be a good thing to add to the docs if there isn’t another way.

Anyway, still really enjoying NC 🙂

Attachments:
  1. 2018-05-16-22_22_52-Window.png