Reply To: Access the parent node from a task?

NodeCanvas Forums Custom Nodes & Tasks Access the parent node from a task? Reply To: Access the parent node from a task?

#12550
Gavalakis
Keymaster

Hello,
Unfortunately right now and by design, Tasks know nothing about the parent node in which they are assigned to, but they do know about the parent system they belong to, meaning for example, the FSM itself, which can be fetched like this var fsm = (FSM)ownerSystem;.
With that said, I am already looking at refactoring the code, so that Tasks also have a reference to the parent node as well.

Thanks!

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