The difference in BT (in comparison to FSM), is that in a BT multiple nodes may run simultaneously due to a Parallel composite and it has no definite states like an FSM has.
You could still however get a BT node from code. I would suggest tagging the nodes you want to get in code with a “tag” in its inspector and then use the graph.GetNodeWithTag<T>(string tag), to get tagged node.
Let me know if this works for your use case.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.