Hi,
I am trying to use the additional_args
parameter when instantiating a UnityEnvironment()
but it doesn’t look like I am receiving that parameter in the environment.
In Python:
additional_args = []
additional_args += ["--test_arg"]
env = UnityEnvironment(..., additional_args=additional_args)
In Unity (3DBall scenario, inside Ball3DAgent.Initialize())
var sr = File.CreateText(fileName);
string[] args = System.Environment.GetCommandLineArgs();
for (var i = 0; i < args.Length - 1; i++)
{
sr.WriteLine(args[i]);
}
sr.Close();
As you can see, I am generating a text file with all the received arguments, but so far I only see the path to the executable and --mlagents-port 5005
Any ideas what could be happening?