Guard node does not seem to be working in sub-trees. OnGraphStarted raises a null-reference error since graphAgent is null in subgraphs. Not sure if this is intended behavior but shouldn’t the agent get propagated down to subtrees upon subgraph initialization? If this is not a bug, is there an alternative solution?
Thanks
public override void OnGraphStarted(){
SetGuards(graphAgent);
}
Thanks for the report.
The agent is actually propagated down the subGraph, but the error is happening, because of the current execution order in “SubTree.CheckInstance” method (OnGraphStarted is called before propagating the agent).
I will have to fix this.
Thanks again for the report!