For example in the LeaderFollow task, there is a public SharedGameObject[] Agents.
But in the inspector you can't assign a shared variable to the array, you can only input a value for array size then you can assign individual array elements.
In my case my array of agents will change at runtime, so I need to assign and/or change the list of agents over time.
For now I'm just writing my own task to handle things.
But in the inspector you can't assign a shared variable to the array, you can only input a value for array size then you can assign individual array elements.
In my case my array of agents will change at runtime, so I need to assign and/or change the list of agents over time.
For now I'm just writing my own task to handle things.