Let’s say I have an Agent like so:
public class MyAgent : Agent {
public int numEnemies;
public int numGoals;
...
}
Right now what I can do is change the value of numEnemies and numGoals through the Unity interface, build the project and re-run with my Python code. This works, but seems terribly inefficient.
Is there a way to control those two variable through the Python API at runtime so I can just do something like:
env = UnityEnvironment(filename=“myApp.exe”)
env.numEnemies = 10
env.numGoals = 5
env.reset()
Taking a look at custom side channels, it seems like that might be what I want, but I’m not entirely sure.