Hmm. Considering that I’ve understood correctly, I think that a combination of #1 and #2 can probably be the best approach for this.
What I mean by that is something like this:
1) Pre-create a BehaviourTree Asset with required actions/nodes/setup and store it in your project (maybe in a Resources folder to avoid direct reference) 2) In your BehaviourTreeOwner derived agent and within the overriden Reset() method, instead of coding the graph, use the pre-created graph and assign it to the agent. This can easily be done with the GraphOwner.SetBoundGraphReference(Graph) method.
Doing it this way, avoids the need to manually handling serialization as well as coding the graph’s layout since the graph is already pre-made.
Let me know what you think and if this works for your use case.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.