Hi,
Here’s the situation, i’m using a generic actor class, and i’m giving it’s behavior agent a BehaviorGraph, depending on the type of actor (the behavior graphs are stored in a list).
It seems like every actor of the same type share the same BehaviorGraph instance (including blackboard variables instances), i was hoping each agent would have it’s own instance.
Am i doing something wrong?
Is there a way to instanciate BehaviorGraphs by code?
Hi @ced30,
Each agent should have it’s own instance as long as you have the BehaviorGraphAgent Component assigned to the monobehavior & you call the Init() function for each agent.
The runtime serialziation sample shows many objects being created at runtime moving around using the same graph with multiple instances.
