jimi
Member
Hi there,
I was wondering how to set the agents of the NavMeshGroupMovement movements like flock at runtime.
I have a list of game objects I've tried to set like this:
But, Error: No variable exists with name Agents or agents.
I've also tried creating a new variable and exposing like this:
but not sure how to link it to the Agents list. Any guidance would be appreciated, thanks.
I was wondering how to set the agents of the NavMeshGroupMovement movements like flock at runtime.
I have a list of game objects I've tried to set like this:
C#:
FlockTree.SetVariableValue("agents", Boars);
I've also tried creating a new variable and exposing like this:
but not sure how to link it to the Agents list. Any guidance would be appreciated, thanks.